DefaultBHttpClientConnection@NotThreadSafe @Deprecated public class DefaultHttpClientConnection extends SocketHttpClientConnection
| 构造器和说明 |
|---|
DefaultHttpClientConnection()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
bind(java.net.Socket socket,
HttpParams params)
已过时。
Binds this connection to the given
Socket. |
assertNotOpen, assertOpen, close, createSessionInputBuffer, createSessionOutputBuffer, getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort, getSocket, getSocketTimeout, isOpen, setSocketTimeout, shutdown, toStringcreateConnectionMetrics, createEntityDeserializer, createEntitySerializer, createHttpResponseFactory, createRequestWriter, createResponseParser, doFlush, flush, getMetrics, init, isEof, isResponseAvailable, isStale, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMetrics, isStalepublic void bind(java.net.Socket socket,
HttpParams params)
throws java.io.IOException
SocketHttpClientConnectionSocket. This socket will be
used by the connection to send and receive data.
This method will invoke SocketHttpClientConnection.createSessionInputBuffer(Socket, int, HttpParams)
and SocketHttpClientConnection.createSessionOutputBuffer(Socket, int, HttpParams) methods
to create session input / output buffers bound to this socket and then
will invoke AbstractHttpClientConnection.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 return true.
bind 在类中 SocketHttpClientConnectionsocket - the socket.params - HTTP parameters.java.io.IOException - in case of an I/O error.