Deprecated
(4.3) use DefaultBHttpClientConnection
Socket for receiving data from and transmitting data to
a remote server.
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private volatile Socket |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | assertOpen()
Implements abstract org. |
| protected void | bind(final Socket
the socket. socket, final HttpParams HTTP parameters. params)
Deprecated
as a consequence of
Binds this connection to the given HttpParams being deprecated.
Socket.
|
| public void | |
| protected SessionInputBuffer | Returns: session input buffer.the socket. socket, final int the buffer size. bufferSize, final HttpParams HTTP parameters. params)
Deprecated
as a consequence of
Creates an instance of HttpParams being deprecated.
SocketInputBuffer to be used for
receiving data from the given Socket.
|
| protected SessionOutputBuffer | Returns: session output buffer.the socket. socket, final int the buffer size. bufferSize, final HttpParams HTTP parameters. params)
Deprecated
as a consequence of
Creates an instance of HttpParams being deprecated.
SessionOutputBuffer to be used for
sending data to the given Socket.
|
| private static void | |
| public InetAddress | |
| public int | |
| public InetAddress | |
| public int | |
| protected Socket | |
| public int | getSocketTimeout()
Implements org. |
| public boolean | |
| public void | setSocketTimeout(final int
timeout value in milliseconds timeout)Implements org. |
| public void | |
| public String |
| open | back to summary |
|---|---|
| private volatile boolean open | |
| socket | back to summary |
|---|---|
| private volatile Socket socket | |
| SocketHttpClientConnection | back to summary |
|---|---|
| public SocketHttpClientConnection() | |
| assertNotOpen | back to summary |
|---|---|
| protected void assertNotOpen() | |
| assertOpen | back to summary |
|---|---|
| protected void assertOpen() Implements abstract org. Doc from org. Asserts if the connection is open.
| |
| bind | back to summary |
|---|---|
| protected void bind(final Socket socket, final HttpParams params) throws IOException
Deprecated as a consequence of Binds this connection to the given
This method will invoke
After this method's execution the connection status will be reported
as open and the
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements org. Doc from org. 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
| |
| createSessionInputBuffer | back to summary |
|---|---|
| protected SessionInputBuffer createSessionInputBuffer(final Socket socket, final int bufferSize, final HttpParams params) throws IOException
Deprecated as a consequence of Creates an instance of
This method can be overridden in a super class in order to provide
a custom implementation of
| |
| createSessionOutputBuffer | back to summary |
|---|---|
| protected SessionOutputBuffer createSessionOutputBuffer(final Socket socket, final int bufferSize, final HttpParams params) throws IOException
Deprecated as a consequence of Creates an instance of
This method can be overridden in a super class in order to provide
a custom implementation of
| |
| formatAddress | back to summary |
|---|---|
| private static void formatAddress(final StringBuilder buffer, final SocketAddress socketAddress) | |
| getLocalAddress | back to summary |
|---|---|
| public InetAddress getLocalAddress() Implements org.
| |
| getLocalPort | back to summary |
|---|---|
| public int getLocalPort() Implements org.
| |
| getRemoteAddress | back to summary |
|---|---|
| public InetAddress getRemoteAddress() Implements org.
| |
| getRemotePort | back to summary |
|---|---|
| public int getRemotePort() Implements org.
| |
| getSocket | back to summary |
|---|---|
| protected Socket getSocket() | |
| getSocketTimeout | back to summary |
|---|---|
| public int getSocketTimeout() Implements org. Doc from org. Returns the socket timeout value.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements org. Doc from org. Checks if this connection is open.
| |
| setSocketTimeout | back to summary |
|---|---|
| public void setSocketTimeout(final int timeout) Implements org. Doc from org. Sets the socket timeout value.
| |
| shutdown | back to summary |
|---|---|
| public void shutdown() throws IOException Implements org. Doc from org. 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.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |