org.mockserver.codec.NettyHttpToMockServerHttpResponseDecoder 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.FullHttpResponse;
import org.mockserver.mappers.FullHttpResponseToMockServerHttpResponse;
import org.mockserver.logging.MockServerLogger;
import java.util.List;
/**
* @author jamesdbloom
*/
public class NettyHttpToMockServerHttpResponseDecoder extends MessageToMessageDecoder {
private final FullHttpResponseToMockServerHttpResponse fullHttpResponseToMockServerResponse;
NettyHttpToMockServerHttpResponseDecoder(MockServerLogger mockServerLogger) {
fullHttpResponseToMockServerResponse = new FullHttpResponseToMockServerHttpResponse(mockServerLogger);
}
@Override
protected void decode(ChannelHandlerContext ctx, FullHttpResponse fullHttpResponse, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy