org.mockserver.codec.MockServerHttpToNettyHttpResponseEncoder 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.logging.MockServerLogger;
import org.mockserver.mappers.MockServerHttpResponseToFullHttpResponse;
import org.mockserver.model.HttpResponse;
import java.util.List;
/**
* @author jamesdbloom
*/
public class MockServerHttpToNettyHttpResponseEncoder extends MessageToMessageEncoder {
private final MockServerHttpResponseToFullHttpResponse mockServerHttpResponseToFullHttpResponse;
public MockServerHttpToNettyHttpResponseEncoder(MockServerLogger mockServerLogger) {
mockServerHttpResponseToFullHttpResponse = new MockServerHttpResponseToFullHttpResponse(mockServerLogger);
}
@Override
protected void encode(ChannelHandlerContext ctx, HttpResponse response, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy