Package org.apache.http.impl
Class DefaultHttpClientConnection
- java.lang.Object
-
- org.apache.http.impl.AbstractHttpClientConnection
-
- org.apache.http.impl.SocketHttpClientConnection
-
- org.apache.http.impl.DefaultHttpClientConnection
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,HttpClientConnection
,HttpConnection
,HttpInetConnection
@Deprecated public class DefaultHttpClientConnection extends SocketHttpClientConnection
Deprecated.(4.3) useDefaultBHttpClientConnection
Default implementation of a client-side HTTP connection.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description DefaultHttpClientConnection()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
bind(java.net.Socket socket, HttpParams params)
Deprecated.Binds this connection to the givenSocket
.-
Methods inherited from class org.apache.http.impl.SocketHttpClientConnection
assertNotOpen, assertOpen, close, createSessionInputBuffer, createSessionOutputBuffer, getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort, getSocket, getSocketTimeout, isOpen, setSocketTimeout, shutdown, toString
-
Methods inherited from class org.apache.http.impl.AbstractHttpClientConnection
createConnectionMetrics, createEntityDeserializer, createEntitySerializer, createHttpResponseFactory, createRequestWriter, createResponseParser, doFlush, flush, getMetrics, init, isEof, isResponseAvailable, isStale, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeader
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.http.HttpConnection
getMetrics, isStale
-
-
-
-
Method Detail
-
bind
public void bind(java.net.Socket socket, HttpParams params) throws java.io.IOException
Deprecated.Description copied from class:SocketHttpClientConnection
Binds this connection to the givenSocket
. This socket will be used by the connection to send and receive data.This method will invoke
SocketHttpClientConnection.createSessionInputBuffer(Socket, int, HttpParams)
andSocketHttpClientConnection.createSessionOutputBuffer(Socket, int, HttpParams)
methods to create session input / output buffers bound to this socket and then will invokeAbstractHttpClientConnection.init(SessionInputBuffer, SessionOutputBuffer, HttpParams)
method to pass references to those buffers to the underlying HTTP message parser and formatter.After this method's execution the connection status will be reported as open and the
SocketHttpClientConnection.isOpen()
will returntrue
.- Overrides:
bind
in classSocketHttpClientConnection
- Parameters:
socket
- the socket.params
- HTTP parameters.- Throws:
java.io.IOException
- in case of an I/O error.
-
-