|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.http.impl.AbstractHttpServerConnection
Abstract server-side HTTP connection capable of transmitting and receiving data
using arbitrary HttpDataReceiver and HttpDataTransmitter
| Constructor Summary | |
AbstractHttpServerConnection()
|
|
| Method Summary | |
protected abstract void |
assertOpen()
|
protected void |
doFlush()
|
void |
flush()
Sends all pending buffered data over this connection. |
boolean |
isStale()
Checks whether this connection has gone down. |
void |
receiveRequestEntity(HttpEntityEnclosingRequest request)
Receives the next request entity available from this connection and attaches it to an existing request. |
HttpRequest |
receiveRequestHeader(HttpParams params)
Receives the request line and all headers available from this connection. |
protected void |
receiveRequestHeaders(HttpRequest request)
|
protected HttpRequest |
receiveRequestLine(HttpParams params)
|
void |
sendResponseEntity(HttpResponse response)
Sends the response entity of a response over this connection. |
void |
sendResponseHeader(HttpResponse response)
Sends the response line and headers of a response over this connection. |
protected void |
sendResponseHeaders(HttpResponse response)
|
protected void |
sendResponseStatusLine(HttpResponse response)
|
protected void |
setHttpDataReceiver(HttpDataReceiver datareceiver)
|
protected void |
setHttpDataTransmitter(HttpDataTransmitter datatransmitter)
|
protected void |
setMaxHeaderCount(int maxHeaderCount)
|
protected void |
setRequestFactory(HttpRequestFactory requestfactory)
|
| 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 |
close, getSocketTimeout, isOpen, setSocketTimeout, shutdown |
| Constructor Detail |
public AbstractHttpServerConnection()
| Method Detail |
protected abstract void assertOpen()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionprotected void setMaxHeaderCount(int maxHeaderCount)
protected void setRequestFactory(HttpRequestFactory requestfactory)
protected void setHttpDataReceiver(HttpDataReceiver datareceiver)
protected void setHttpDataTransmitter(HttpDataTransmitter datatransmitter)
public HttpRequest receiveRequestHeader(HttpParams params)
throws HttpException,
java.io.IOException
HttpServerConnection
receiveRequestHeader in interface HttpServerConnectionparams - the parameters in effect for this connection
HttpException
java.io.IOException
public void receiveRequestEntity(HttpEntityEnclosingRequest request)
throws HttpException,
java.io.IOException
HttpServerConnection
receiveRequestEntity in interface HttpServerConnectionrequest - the request to attach the entity to.
HttpException
java.io.IOException
protected HttpRequest receiveRequestLine(HttpParams params)
throws HttpException,
java.io.IOException
HttpException
java.io.IOException
protected void receiveRequestHeaders(HttpRequest request)
throws HttpException,
java.io.IOException
HttpException
java.io.IOException
protected void doFlush()
throws java.io.IOException
java.io.IOException
public void flush()
throws java.io.IOException
HttpServerConnection
flush in interface HttpServerConnectionjava.io.IOException
public void sendResponseHeader(HttpResponse response)
throws HttpException,
java.io.IOException
HttpServerConnection
sendResponseHeader in interface HttpServerConnectionresponse - the response whose headers to send.
java.io.IOException
HttpException
public void sendResponseEntity(HttpResponse response)
throws HttpException,
java.io.IOException
HttpServerConnection
sendResponseEntity in interface HttpServerConnectionresponse - the response whose entity to send.
java.io.IOException
HttpException
protected void sendResponseStatusLine(HttpResponse response)
throws HttpException,
java.io.IOException
HttpException
java.io.IOException
protected void sendResponseHeaders(HttpResponse response)
throws HttpException,
java.io.IOException
HttpException
java.io.IOExceptionpublic boolean isStale()
HttpConnection
isStale in interface HttpConnectiontrue if attempts to use this connection are
likely to succeed, or false if they are likely
to fail and this connection should be closed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||