Class HttpReceiverOverFCGI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpChannelOverFCGIprotected voidreceive()protected booleanresponseBegin(HttpExchange exchange) Method to be invoked when the response status code is available.protected booleanresponseContent(HttpExchange exchange, ByteBuffer buffer, Callback callback) Method to be invoked when response HTTP content is available.protected booleanresponseFailure(Throwable failure) Method to be invoked when the response is failed.protected booleanresponseHeader(HttpExchange exchange, HttpField field) Method to be invoked when a response HTTP header is available.protected booleanresponseHeaders(HttpExchange exchange) Method to be invoked after all response HTTP headers are available.protected booleanresponseSuccess(HttpExchange exchange) Method to be invoked when the response is successful.Methods inherited from class org.eclipse.jetty.client.HttpReceiver
abort, demand, dispose, getHttpDestination, getHttpExchange, hasDemandOrStall, isFailed, reset, storeCookie, toString
-
Constructor Details
-
HttpReceiverOverFCGI
-
-
Method Details
-
getHttpChannel
- Overrides:
getHttpChannelin classHttpReceiver
-
responseBegin
Description copied from class:HttpReceiverMethod to be invoked when the response status code is available.Subclasses must have set the response status code on the
Responseobject of theHttpExchangeprior invoking this method.This method takes case of notifying
Response.BeginListeners.- Overrides:
responseBeginin classHttpReceiver- Parameters:
exchange- the HTTP exchange- Returns:
- whether the processing should continue
-
responseHeader
Description copied from class:HttpReceiverMethod to be invoked when a response HTTP header is available.Subclasses must not have added the header to the
Responseobject of theHttpExchangeprior invoking this method.This method takes case of notifying
Response.HeaderListeners and storing cookies.- Overrides:
responseHeaderin classHttpReceiver- Parameters:
exchange- the HTTP exchangefield- the response HTTP field- Returns:
- whether the processing should continue
-
responseHeaders
Description copied from class:HttpReceiverMethod to be invoked after all response HTTP headers are available.This method takes case of notifying
Response.HeadersListeners.- Overrides:
responseHeadersin classHttpReceiver- Parameters:
exchange- the HTTP exchange- Returns:
- whether the processing should continue
-
responseContent
Description copied from class:HttpReceiverMethod to be invoked when response HTTP content is available.This method takes case of decoding the content, if necessary, and notifying
Response.ContentListeners.- Overrides:
responseContentin classHttpReceiver- Parameters:
exchange- the HTTP exchangebuffer- the response HTTP content buffercallback- the callback- Returns:
- whether the processing should continue
-
responseSuccess
Description copied from class:HttpReceiverMethod to be invoked when the response is successful.This method takes case of notifying
Response.SuccessListeners and possiblyResponse.CompleteListeners (if the exchange is completed).- Overrides:
responseSuccessin classHttpReceiver- Parameters:
exchange- the HTTP exchange- Returns:
- whether the response was processed as successful
-
responseFailure
Description copied from class:HttpReceiverMethod to be invoked when the response is failed.This method takes care of notifying
Response.FailureListeners.- Overrides:
responseFailurein classHttpReceiver- Parameters:
failure- the response failure- Returns:
- whether the response was processed as failed
-
receive
protected void receive()- Overrides:
receivein classHttpReceiver
-