DefaultBHttpClientConnection@Deprecated public class SocketHttpClientConnection extends AbstractHttpClientConnection implements HttpInetConnection
Socket for receiving data from and transmitting data to
a remote server.| Constructor and Description |
|---|
SocketHttpClientConnection()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
Closes this connection gracefully.
|
InetAddress |
getLocalAddress()
Deprecated.
|
int |
getLocalPort()
Deprecated.
|
InetAddress |
getRemoteAddress()
Deprecated.
|
int |
getRemotePort()
Deprecated.
|
int |
getSocketTimeout()
Deprecated.
Returns the socket timeout value.
|
boolean |
isOpen()
Deprecated.
Checks if this connection is open.
|
void |
setSocketTimeout(int timeout)
Deprecated.
Sets the socket timeout value.
|
void |
shutdown()
Deprecated.
Force-closes this connection.
|
String |
toString()
Deprecated.
|
flush, getMetrics, isResponseAvailable, isStale, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeaderequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMetrics, isStalepublic boolean isOpen()
HttpConnectionisOpen in interface HttpConnectionpublic InetAddress getLocalAddress()
getLocalAddress in interface HttpInetConnectionpublic int getLocalPort()
getLocalPort in interface HttpInetConnectionpublic InetAddress getRemoteAddress()
getRemoteAddress in interface HttpInetConnectionpublic int getRemotePort()
getRemotePort in interface HttpInetConnectionpublic void setSocketTimeout(int timeout)
HttpConnectionsetSocketTimeout in interface HttpConnectiontimeout - timeout value in millisecondspublic int getSocketTimeout()
HttpConnectiongetSocketTimeout in interface HttpConnection0 if timeout is disabled or -1 if
timeout is undefined.public void shutdown()
throws IOException
HttpConnectionshutdown in interface HttpConnectionIOExceptionpublic void close()
throws IOException
HttpConnectionshutdown instead.close in interface Closeableclose in interface AutoCloseableclose in interface HttpConnectionIOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved