org.mockserver.codec.NettyHttpToMockServerHttpRequestDecoder 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.MessageToMessageDecoder;
import io.netty.handler.codec.http.FullHttpRequest;
import org.mockserver.logging.MockServerLogger;
import org.mockserver.mappers.FullHttpRequestToMockServerHttpRequest;
import java.util.List;
/**
* @author jamesdbloom
*/
public class NettyHttpToMockServerHttpRequestDecoder extends MessageToMessageDecoder {
private final FullHttpRequestToMockServerHttpRequest fullHttpRequestToMockServerRequest;
public NettyHttpToMockServerHttpRequestDecoder(MockServerLogger mockServerLogger, boolean isSecure) {
fullHttpRequestToMockServerRequest = new FullHttpRequestToMockServerHttpRequest(mockServerLogger, isSecure);
}
@Override
protected void decode(ChannelHandlerContext ctx, FullHttpRequest fullHttpRequest, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy