Class HttpReceiverOverFCGI
- java.lang.Object
-
- org.eclipse.jetty.client.HttpReceiver
-
- org.eclipse.jetty.fcgi.client.http.HttpReceiverOverFCGI
-
public class HttpReceiverOverFCGI extends HttpReceiver
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.client.HttpReceiver
LOG
-
-
Constructor Summary
Constructors Constructor Description HttpReceiverOverFCGI(HttpChannel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpChannelOverFCGI
getHttpChannel()
protected void
receive()
protected boolean
responseBegin(HttpExchange exchange)
Method to be invoked when the response status code is available.protected boolean
responseContent(HttpExchange exchange, java.nio.ByteBuffer buffer, Callback callback)
Method to be invoked when response HTTP content is available.protected boolean
responseFailure(java.lang.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.-
Methods inherited from class org.eclipse.jetty.client.HttpReceiver
abort, demand, dispose, getHttpDestination, getHttpExchange, hasDemandOrStall, isFailed, reset, storeCookie, toString
-
-
-
-
Constructor Detail
-
HttpReceiverOverFCGI
public HttpReceiverOverFCGI(HttpChannel channel)
-
-
Method Detail
-
getHttpChannel
protected HttpChannelOverFCGI getHttpChannel()
- Overrides:
getHttpChannel
in classHttpReceiver
-
responseBegin
protected boolean responseBegin(HttpExchange exchange)
Description copied from class:HttpReceiver
Method to be invoked when the response status code is available.Subclasses must have set the response status code on the
Response
object of theHttpExchange
prior invoking this method.This method takes case of notifying
Response.BeginListener
s.- Overrides:
responseBegin
in classHttpReceiver
- Parameters:
exchange
- the HTTP exchange- Returns:
- whether the processing should continue
-
responseHeader
protected boolean responseHeader(HttpExchange exchange, HttpField field)
Description copied from class:HttpReceiver
Method to be invoked when a response HTTP header is available.Subclasses must not have added the header to the
Response
object of theHttpExchange
prior invoking this method.This method takes case of notifying
Response.HeaderListener
s and storing cookies.- Overrides:
responseHeader
in classHttpReceiver
- Parameters:
exchange
- the HTTP exchangefield
- the response HTTP field- Returns:
- whether the processing should continue
-
responseHeaders
protected boolean responseHeaders(HttpExchange exchange)
Description copied from class:HttpReceiver
Method to be invoked after all response HTTP headers are available.This method takes case of notifying
Response.HeadersListener
s.- Overrides:
responseHeaders
in classHttpReceiver
- Parameters:
exchange
- the HTTP exchange- Returns:
- whether the processing should continue
-
responseContent
protected boolean responseContent(HttpExchange exchange, java.nio.ByteBuffer buffer, Callback callback)
Description copied from class:HttpReceiver
Method to be invoked when response HTTP content is available.This method takes case of decoding the content, if necessary, and notifying
Response.ContentListener
s.- Overrides:
responseContent
in classHttpReceiver
- Parameters:
exchange
- the HTTP exchangebuffer
- the response HTTP content buffercallback
- the callback- Returns:
- whether the processing should continue
-
responseSuccess
protected boolean responseSuccess(HttpExchange exchange)
Description copied from class:HttpReceiver
Method to be invoked when the response is successful.This method takes case of notifying
Response.SuccessListener
s and possiblyResponse.CompleteListener
s (if the exchange is completed).- Overrides:
responseSuccess
in classHttpReceiver
- Parameters:
exchange
- the HTTP exchange- Returns:
- whether the response was processed as successful
-
responseFailure
protected boolean responseFailure(java.lang.Throwable failure)
Description copied from class:HttpReceiver
Method to be invoked when the response is failed.This method takes care of notifying
Response.FailureListener
s.- Overrides:
responseFailure
in classHttpReceiver
- Parameters:
failure
- the response failure- Returns:
- whether the response was processed as failed
-
receive
protected void receive()
- Overrides:
receive
in classHttpReceiver
-
-