org.mockserver.codec.MockServerHttpToNettyHttpRequestEncoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockserver-core Show documentation
Show all versions of mockserver-core Show documentation
Functionality used by all MockServer modules for matching and expectations
package org.mockserver.codec;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageEncoder;
import org.mockserver.mappers.MockServerHttpRequestToFullHttpRequest;
import org.mockserver.logging.MockServerLogger;
import org.mockserver.model.HttpRequest;
import java.util.List;
/**
* @author jamesdbloom
*/
public class MockServerHttpToNettyHttpRequestEncoder extends MessageToMessageEncoder {
private final MockServerHttpRequestToFullHttpRequest mockServerHttpRequestToFullHttpRequest;
MockServerHttpToNettyHttpRequestEncoder(MockServerLogger mockServerLogger) {
mockServerHttpRequestToFullHttpRequest = new MockServerHttpRequestToFullHttpRequest(mockServerLogger);
}
@Override
protected void encode(ChannelHandlerContext ctx, HttpRequest httpRequest, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy