java.lang.Object | ||
↳ | org.apache.http.impl.AbstractHttpServerConnection | |
↳ | org.apache.http.impl.SocketHttpServerConnection |
Known Direct Subclasses |
Implementation of a server-side HTTP connection that can be bound to a network Socket in order to receive and transmit data.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Closes this connection gracefully.
| |||||||||||
Returns the socket timeout value.
| |||||||||||
Checks if this connection is open.
| |||||||||||
Sets the socket timeout value.
| |||||||||||
Force-closes this connection.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.impl.AbstractHttpServerConnection
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.HttpConnection
| |||||||||||
From interface
org.apache.http.HttpInetConnection
| |||||||||||
From interface
org.apache.http.HttpServerConnection
|
Closes this connection gracefully.
This method will attempt to flush the transmitter's
internal 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.
IOException |
---|
Returns the socket timeout value.
0
if timeout is disabled or -1
if
timeout is undefined.
Checks if this connection is open.
Sets the socket timeout value.
timeout | timeout value in milliseconds |
---|
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.
IOException |
---|
IOException |
---|
IOException |
---|