Example usage for org.apache.http.testserver Wire Wire

List of usage examples for org.apache.http.testserver Wire Wire

Introduction

In this page you can find the example usage for org.apache.http.testserver Wire Wire.

Prototype

public Wire(final Log log, final String id) 

Source Link

Usage

From source file:org.apache.http.testserver.LoggingBHttpClientConnection.java

public LoggingBHttpClientConnection(final int buffersize, final int fragmentSizeHint,
        final CharsetDecoder chardecoder, final CharsetEncoder charencoder,
        final MessageConstraints constraints, final ContentLengthStrategy incomingContentStrategy,
        final ContentLengthStrategy outgoingContentStrategy,
        final HttpMessageWriterFactory<HttpRequest> requestWriterFactory,
        final HttpMessageParserFactory<HttpResponse> responseParserFactory) {
    super(buffersize, fragmentSizeHint, chardecoder, charencoder, constraints, incomingContentStrategy,
            outgoingContentStrategy, requestWriterFactory, responseParserFactory);
    this.id = "http-outgoing-" + COUNT.incrementAndGet();
    this.log = LogFactory.getLog(getClass());
    this.headerlog = LogFactory.getLog("org.apache.http.headers");
    this.wire = new Wire(LogFactory.getLog("org.apache.http.wire"), this.id);
}

From source file:org.apache.http.testserver.LoggingBHttpServerConnection.java

public LoggingBHttpServerConnection(final int buffersize, final int fragmentSizeHint,
        final CharsetDecoder chardecoder, final CharsetEncoder charencoder,
        final MessageConstraints constraints, final ContentLengthStrategy incomingContentStrategy,
        final ContentLengthStrategy outgoingContentStrategy,
        final HttpMessageParserFactory<HttpRequest> requestParserFactory,
        final HttpMessageWriterFactory<HttpResponse> responseWriterFactory) {
    super(buffersize, fragmentSizeHint, chardecoder, charencoder, constraints, incomingContentStrategy,
            outgoingContentStrategy, requestParserFactory, responseWriterFactory);
    this.id = "http-incoming-" + COUNT.incrementAndGet();
    this.log = LogFactory.getLog(getClass());
    this.headerlog = LogFactory.getLog("org.apache.http.headers");
    this.wire = new Wire(LogFactory.getLog("org.apache.http.wire"), this.id);
}