public class LoggingBHttpClientConnection extends DefaultBHttpClientConnection implements Identifiable
Constructor and Description |
---|
LoggingBHttpClientConnection(Http1Config http1Config) |
LoggingBHttpClientConnection(Http1Config http1Config,
CharsetDecoder charDecoder,
CharsetEncoder charEncoder,
ContentLengthStrategy incomingContentStrategy,
ContentLengthStrategy outgoingContentStrategy,
HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory,
HttpMessageParserFactory<ClassicHttpResponse> responseParserFactory) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
awaitInput(Timeout arg0) |
void |
bind(Socket socket) |
protected void |
bind(SocketHolder arg0) |
void |
close() |
void |
close(CloseMode closeMode) |
protected InputStream |
createContentInputStream(long arg0,
SessionInputBuffer arg1,
InputStream arg2) |
protected OutputStream |
createContentOutputStream(long arg0,
SessionOutputBuffer arg1,
OutputStream arg2,
Supplier<List<? extends Header>> arg3) |
protected SocketHolder |
ensureOpen() |
String |
getId() |
protected SocketHolder |
getSocketHolder() |
protected void |
incrementRequestCount() |
protected void |
incrementResponseCount() |
protected void |
onRequestSubmitted(ClassicHttpRequest request) |
protected void |
onResponseReceived(ClassicHttpResponse response) |
isConsistent, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeader, terminateRequest
public LoggingBHttpClientConnection(Http1Config http1Config, CharsetDecoder charDecoder, CharsetEncoder charEncoder, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageWriterFactory<ClassicHttpRequest> requestWriterFactory, HttpMessageParserFactory<ClassicHttpResponse> responseParserFactory)
public LoggingBHttpClientConnection(Http1Config http1Config)
public String getId()
getId
in interface Identifiable
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface HttpConnection
close
in class DefaultBHttpClientConnection
IOException
public void close(CloseMode closeMode)
close
in interface ModalCloseable
close
in class DefaultBHttpClientConnection
public void bind(Socket socket) throws IOException
bind
in class DefaultBHttpClientConnection
IOException
protected void onResponseReceived(ClassicHttpResponse response)
onResponseReceived
in class DefaultBHttpClientConnection
protected void onRequestSubmitted(ClassicHttpRequest request)
onRequestSubmitted
in class DefaultBHttpClientConnection
protected SocketHolder ensureOpen() throws IOException
IOException
protected void bind(SocketHolder arg0) throws IOException
IOException
protected SocketHolder getSocketHolder()
protected OutputStream createContentOutputStream(long arg0, SessionOutputBuffer arg1, OutputStream arg2, Supplier<List<? extends Header>> arg3)
protected InputStream createContentInputStream(long arg0, SessionInputBuffer arg1, InputStream arg2)
protected boolean awaitInput(Timeout arg0) throws IOException
IOException
protected void incrementRequestCount()
protected void incrementResponseCount()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.