Top Fields Constructors Methods
org.apache.http.impl.conn

pack-priv Class LoggingManagedHttpClientConnection

extends DefaultManagedHttpClientConnection
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream, java.net.Socket, java.nio.charset.CharsetDecoder, .CharsetEncoder, org.apache.commons.logging.Log, org.apache.http.Header, .HttpRequest, .HttpResponse, org.apache.http.config.MessageConstraints, org.apache.http.entity.ContentLengthStrategy, org.apache.http.io.HttpMessageParserFactory, .HttpMessageWriterFactory

Field Summary

Modifier and TypeField and Description
private final Log
private final Log
private final Wire

Constructor Summary

AccessConstructor and Description
public
LoggingManagedHttpClientConnection(final String id, final Log log, final Log headerLog, final Log wireLog, 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)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides org.apache.http.impl.BHttpConnectionBase.close.

Implements org.apache.http.HttpConnection.close.

Closes this connection gracefully.
protected InputStream
protected OutputStream
protected void
protected void
public void
setSocketTimeout(final int
timeout value in milliseconds
timeout
)

Overrides org.apache.http.impl.BHttpConnectionBase.setSocketTimeout.

Implements org.apache.http.HttpConnection.setSocketTimeout.

Sets the socket timeout value.
public void
Inherited from org.apache.http.impl.conn.DefaultManagedHttpClientConnection:
bindgetAttributegetIdgetSocketgetSSLSessionremoveAttributesetAttribute

Field Detail

headerLogback to summary
private final Log headerLog
logback to summary
private final Log log
wireback to summary
private final Wire wire

Constructor Detail

LoggingManagedHttpClientConnectionback to summary
public LoggingManagedHttpClientConnection(final String id, final Log log, final Log headerLog, final Log wireLog, 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)

Method Detail

closeback to summary
public void close() throws IOException

Overrides org.apache.http.impl.BHttpConnectionBase.close.

Implements org.apache.http.HttpConnection.close.

Doc from org.apache.http.HttpConnection.close.

Closes this connection gracefully. This method will attempt to flush the internal output buffer prior to closing the underlying socket. This method MUST NOT be called from a different thread to force shutdown of the connection. Use shutdown instead.

Annotations
@Override
Exceptions
IOException:

Doc from java.io.Closeable.close.

if an I/O error occurs

getSocketInputStreamback to summary
protected InputStream getSocketInputStream(final Socket socket) throws IOException

Overrides org.apache.http.impl.BHttpConnectionBase.getSocketInputStream.

Annotations
@Override
getSocketOutputStreamback to summary
protected OutputStream getSocketOutputStream(final Socket socket) throws IOException

Overrides org.apache.http.impl.BHttpConnectionBase.getSocketOutputStream.

Annotations
@Override
onRequestSubmittedback to summary
protected void onRequestSubmitted(final HttpRequest request)

Overrides org.apache.http.impl.DefaultBHttpClientConnection.onRequestSubmitted.

Annotations
@Override
onResponseReceivedback to summary
protected void onResponseReceived(final HttpResponse response)

Overrides org.apache.http.impl.DefaultBHttpClientConnection.onResponseReceived.

Annotations
@Override
setSocketTimeoutback to summary
public void setSocketTimeout(final int timeout)

Overrides org.apache.http.impl.BHttpConnectionBase.setSocketTimeout.

Implements org.apache.http.HttpConnection.setSocketTimeout.

Doc from org.apache.http.HttpConnection.setSocketTimeout.

Sets the socket timeout value.

Parameters
timeout:int

timeout value in milliseconds

Annotations
@Override
shutdownback to summary
public void shutdown() throws IOException

Overrides org.apache.http.impl.conn.DefaultManagedHttpClientConnection.shutdown.

Implements org.apache.http.HttpConnection.shutdown.

Doc from org.apache.http.HttpConnection.shutdown.

Force-closes this connection. This is the only method of a connection which may be called from a different thread to terminate the connection. This method will not attempt to flush the transmitter's internal buffer prior to closing the underlying socket.

Annotations
@Override