public class HttpReceiverOverFCGI extends HttpReceiver
LOG
Constructor and Description |
---|
HttpReceiverOverFCGI(HttpChannel channel) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
responseBegin(HttpExchange exchange)
Method to be invoked when the response status code is available.
|
protected boolean |
responseContent(HttpExchange exchange,
ByteBuffer buffer,
Callback callback)
Method to be invoked when response HTTP content is available.
|
protected boolean |
responseFailure(Throwable failure)
Method to be invoked when the response is failed.
|
protected boolean |
responseHeader(HttpExchange exchange,
HttpField field)
Method to be invoked when a response HTTP header is available.
|
protected boolean |
responseHeaders(HttpExchange exchange)
Method to be invoked after all response HTTP headers are available.
|
protected boolean |
responseSuccess(HttpExchange exchange)
Method to be invoked when the response is successful.
|
abort, dispose, getHttpChannel, getHttpDestination, getHttpExchange, reset, storeCookie
public HttpReceiverOverFCGI(HttpChannel channel)
protected boolean responseBegin(HttpExchange exchange)
HttpReceiver
Subclasses must have set the response status code on the Response
object of the HttpExchange
prior invoking this method.
This method takes case of notifying Response.BeginListener
s.
responseBegin
in class HttpReceiver
exchange
- the HTTP exchangeprotected boolean responseHeader(HttpExchange exchange, HttpField field)
HttpReceiver
Subclasses must not have added the header to the Response
object of the HttpExchange
prior invoking this method.
This method takes case of notifying Response.HeaderListener
s and storing cookies.
responseHeader
in class HttpReceiver
exchange
- the HTTP exchangefield
- the response HTTP fieldprotected boolean responseHeaders(HttpExchange exchange)
HttpReceiver
This method takes case of notifying Response.HeadersListener
s.
responseHeaders
in class HttpReceiver
exchange
- the HTTP exchangeprotected boolean responseContent(HttpExchange exchange, ByteBuffer buffer, Callback callback)
HttpReceiver
This method takes case of decoding the content, if necessary, and notifying Response.ContentListener
s.
responseContent
in class HttpReceiver
exchange
- the HTTP exchangebuffer
- the response HTTP content bufferprotected boolean responseSuccess(HttpExchange exchange)
HttpReceiver
This method takes case of notifying Response.SuccessListener
s and possibly
Response.CompleteListener
s (if the exchange is completed).
responseSuccess
in class HttpReceiver
exchange
- the HTTP exchangeprotected boolean responseFailure(Throwable failure)
HttpReceiver
This method takes care of notifying Response.FailureListener
s.
responseFailure
in class HttpReceiver
failure
- the response failureCopyright © 1995-2015 Webtide. All Rights Reserved.