|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.impl.AbstractHttpConnection
abstract class AbstractHttpConnection
Abstract base class for HTTP connections on the client and server side.
Field Summary | |
---|---|
protected HttpDataReceiver |
datareceiver
|
protected HttpDataTransmitter |
datatransmitter
|
protected boolean |
open
|
protected java.net.Socket |
socket
|
Constructor Summary | |
---|---|
protected |
AbstractHttpConnection()
|
Method Summary | |
---|---|
protected void |
assertNotOpen()
|
protected void |
assertOpen()
|
protected void |
bind(java.net.Socket socket,
HttpParams params)
|
void |
close()
This method will gracefully close the connection. |
boolean |
isOpen()
Checks if this connection is open. |
boolean |
isStale()
Network connections may get closed during some time of inactivity for several reasons. |
void |
setReceiverFactory(HttpDataReceiverFactory rcvfactory)
|
void |
setTransmitterFactory(HttpDataTransmitterFactory trxfactory)
|
void |
shutdown()
This method will force close the connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected volatile boolean open
protected java.net.Socket socket
protected HttpDataTransmitter datatransmitter
protected HttpDataReceiver datareceiver
Constructor Detail |
---|
protected AbstractHttpConnection()
Method Detail |
---|
public void setReceiverFactory(HttpDataReceiverFactory rcvfactory)
public void setTransmitterFactory(HttpDataTransmitterFactory trxfactory)
protected void assertNotOpen()
protected void assertOpen()
protected void bind(java.net.Socket socket, HttpParams params) throws java.io.IOException
java.io.IOException
public boolean isOpen()
HttpConnection
isOpen
in interface HttpConnection
public void shutdown() throws java.io.IOException
HttpConnection
shutdown
in interface HttpConnection
java.io.IOException
public void close() throws java.io.IOException
HttpConnection
close
in interface HttpConnection
java.io.IOException
HttpConnection.shutdown()
public boolean isStale()
HttpConnection
isStale
in interface HttpConnection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |