Top Description Constructors Methods
org.apache.http.impl

public Class DefaultHttpClientConnection

extends SocketHttpClientConnection
Class Inheritance
Annotations
@Deprecated
Imports
java.io.IOException, java.net.Socket, org.apache.http.params.CoreConnectionPNames, .HttpParams, org.apache.http.util.Args

Deprecated

(4.3) use DefaultBHttpClientConnection

Default implementation of a client-side HTTP connection.
Since
4.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
bind(final Socket
the socket.
socket
,
final HttpParams
HTTP parameters.
params
)

Overrides org.apache.http.impl.SocketHttpClientConnection.bind.

Deprecated as a consequence of HttpParams being deprecated.
Binds this connection to the given Socket.
Inherited from org.apache.http.impl.SocketHttpClientConnection:
assertNotOpenassertOpenclosecreateSessionInputBuffercreateSessionOutputBuffergetLocalAddressgetLocalPortgetRemoteAddressgetRemotePortgetSocketgetSocketTimeoutisOpensetSocketTimeoutshutdowntoString

Constructor Detail

DefaultHttpClientConnectionback to summary
public DefaultHttpClientConnection()

Method Detail

bindback to summary
public void bind(final Socket socket, final HttpParams params) throws IOException

Overrides org.apache.http.impl.SocketHttpClientConnection.bind.

Doc from org.apache.http.impl.SocketHttpClientConnection.bind.

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Binds this connection to the given Socket. This socket will be used by the connection to send and receive data.

This method will invoke createSessionInputBuffer(Socket, int, HttpParams) and createSessionOutputBuffer(Socket, int, HttpParams) methods to create session input / output buffers bound to this socket and then will invoke 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 isOpen() will return true.

Parameters
socket:Socket

the socket.

params:HttpParams

HTTP parameters.

Annotations
@Override
Exceptions
IOException:
in case of an I/O error.