|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.http.impl.AbstractHttpClientConnection
org.apache.http.impl.SocketHttpClientConnection
Implementation of a client-side HTTP connection that can be bound to a network Socket in order to receive and transmit data.
| Field Summary | |
protected boolean |
open
|
protected java.net.Socket |
socket
|
| Constructor Summary | |
SocketHttpClientConnection()
|
|
| Method Summary | |
protected void |
assertNotOpen()
|
protected void |
assertOpen()
|
protected void |
bind(java.net.Socket socket,
HttpParams params)
|
void |
close()
Closes this connection gracefully. |
java.net.InetAddress |
getLocalAddress()
|
int |
getLocalPort()
|
java.net.InetAddress |
getRemoteAddress()
|
int |
getRemotePort()
|
int |
getSocketTimeout()
Returns the socket timeout value. |
boolean |
isOpen()
Checks if this connection is open. |
void |
setSocketTimeout(int timeout)
Sets the socket timeout value. |
void |
shutdown()
Force-closes this connection. |
| Methods inherited from class org.apache.http.impl.AbstractHttpClientConnection |
doFlush, flush, isResponseAvailable, isStale, readResponseHeaders, readResponseStatusLine, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeader, sendRequestHeaders, sendRequestLine, setHttpDataReceiver, setHttpDataTransmitter, setMaxHeaderCount, setResponseFactory, startsWithHTTP |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.http.HttpConnection |
isStale |
| Field Detail |
protected volatile boolean open
protected java.net.Socket socket
| Constructor Detail |
public SocketHttpClientConnection()
| Method Detail |
protected void assertNotOpen()
protected void assertOpen()
assertOpen in class AbstractHttpClientConnection
protected void bind(java.net.Socket socket,
HttpParams params)
throws java.io.IOException
java.io.IOExceptionpublic boolean isOpen()
HttpConnection
isOpen in interface HttpConnectionpublic java.net.InetAddress getLocalAddress()
getLocalAddress in interface HttpInetConnectionpublic int getLocalPort()
getLocalPort in interface HttpInetConnectionpublic java.net.InetAddress getRemoteAddress()
getRemoteAddress in interface HttpInetConnectionpublic int getRemotePort()
getRemotePort in interface HttpInetConnectionpublic void setSocketTimeout(int timeout)
HttpConnection
setSocketTimeout in interface HttpConnectiontimeout - timeout value in millisecondspublic int getSocketTimeout()
HttpConnection
getSocketTimeout in interface HttpConnection0 if timeout is disabled or -1 if
timeout is undefined.
public void shutdown()
throws java.io.IOException
HttpConnection
shutdown in interface HttpConnectionjava.io.IOException
public void close()
throws java.io.IOException
HttpConnectionshutdown instead.
close in interface HttpConnectionjava.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||