|
Build 1.0_r1(from source) | |||||||||
| 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
public class SocketHttpClientConnection
Implementation of a client-side HTTP connection that can be bound to a network Socket in order to receive and transmit data.
| Constructor Summary | |
|---|---|
SocketHttpClientConnection()
|
|
| Method Summary | |
|---|---|
protected void |
assertNotOpen()
|
protected void |
assertOpen()
|
protected void |
bind(Socket socket,
HttpParams params)
|
void |
close()
Closes this connection gracefully. |
protected SessionInputBuffer |
createSessionInputBuffer(Socket socket,
int buffersize,
HttpParams params)
|
protected SessionOutputBuffer |
createSessionOutputBuffer(Socket socket,
int buffersize,
HttpParams params)
|
InetAddress |
getLocalAddress()
|
int |
getLocalPort()
|
InetAddress |
getRemoteAddress()
|
int |
getRemotePort()
|
protected Socket |
getSocket()
|
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 |
|---|
createEntityDeserializer, createEntitySerializer, createHttpResponseFactory, createRequestWriter, createResponseParser, doFlush, flush, getMetrics, init, isResponseAvailable, isStale, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeader |
| 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 |
|---|
getMetrics, isStale |
| Constructor Detail |
|---|
public SocketHttpClientConnection()
| Method Detail |
|---|
protected void assertNotOpen()
protected void assertOpen()
assertOpen in class AbstractHttpClientConnection
protected SessionInputBuffer createSessionInputBuffer(Socket socket,
int buffersize,
HttpParams params)
throws IOException
IOException
protected SessionOutputBuffer createSessionOutputBuffer(Socket socket,
int buffersize,
HttpParams params)
throws IOException
IOException
protected void bind(Socket socket,
HttpParams params)
throws IOException
IOExceptionpublic boolean isOpen()
HttpConnection
isOpen in interface HttpConnectionprotected Socket getSocket()
public 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)
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 IOException
HttpConnection
shutdown in interface HttpConnectionIOException
public void close()
throws IOException
HttpConnectionshutdown instead.
close in interface HttpConnectionIOException
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||