Class HttpReceiverOverFCGI

java.lang.Object
org.eclipse.jetty.client.HttpReceiver
org.eclipse.jetty.fcgi.client.http.HttpReceiverOverFCGI

public class HttpReceiverOverFCGI extends HttpReceiver
  • Constructor Details

    • HttpReceiverOverFCGI

      public HttpReceiverOverFCGI(HttpChannel channel)
  • Method Details

    • getHttpChannel

      protected HttpChannelOverFCGI getHttpChannel()
      Overrides:
      getHttpChannel in class HttpReceiver
    • 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 the HttpExchange prior invoking this method.

      This method takes case of notifying Response.BeginListeners.

      Overrides:
      responseBegin in class HttpReceiver
      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 the HttpExchange prior invoking this method.

      This method takes case of notifying Response.HeaderListeners and storing cookies.

      Overrides:
      responseHeader in class HttpReceiver
      Parameters:
      exchange - the HTTP exchange
      field - 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.HeadersListeners.

      Overrides:
      responseHeaders in class HttpReceiver
      Parameters:
      exchange - the HTTP exchange
      Returns:
      whether the processing should continue
    • responseContent

      protected boolean responseContent(HttpExchange exchange, 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.ContentListeners.

      Overrides:
      responseContent in class HttpReceiver
      Parameters:
      exchange - the HTTP exchange
      buffer - the response HTTP content buffer
      callback - 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.SuccessListeners and possibly Response.CompleteListeners (if the exchange is completed).

      Overrides:
      responseSuccess in class HttpReceiver
      Parameters:
      exchange - the HTTP exchange
      Returns:
      whether the response was processed as successful
    • responseFailure

      protected boolean responseFailure(Throwable failure)
      Description copied from class: HttpReceiver
      Method to be invoked when the response is failed.

      This method takes care of notifying Response.FailureListeners.

      Overrides:
      responseFailure in class HttpReceiver
      Parameters:
      failure - the response failure
      Returns:
      whether the response was processed as failed
    • receive

      protected void receive()
      Overrides:
      receive in class HttpReceiver