Class ProcessingProtocolHandler

java.lang.Object
org.eclipse.jetty.client.ProcessingProtocolHandler
All Implemented Interfaces:
ProtocolHandler

public class ProcessingProtocolHandler extends Object implements ProtocolHandler

A protocol handler that handles the 102 response code.

  • Field Details

  • Constructor Details

    • ProcessingProtocolHandler

      public ProcessingProtocolHandler()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: ProtocolHandler
      Get a unique name among protocol handlers.
      Specified by:
      getName in interface ProtocolHandler
      Returns:
      a unique name among protocol handlers
    • accept

      public boolean accept(Request request, Response response)
      Description copied from interface: ProtocolHandler

      Inspects the given request and response to detect whether this protocol handler should handle them.

      For example, a redirect protocol handler can inspect the response code and return true if it is a redirect response code.

      This method is being called just after the response line has been parsed, and before the response headers are available.

      Specified by:
      accept in interface ProtocolHandler
      Parameters:
      request - the request to accept
      response - the response to accept
      Returns:
      true if this protocol handler can handle the given request and response
    • getResponseListener

      public Response.Listener getResponseListener()
      Specified by:
      getResponseListener in interface ProtocolHandler
      Returns:
      a response listener that will handle the request and response on behalf of the application.
    • onProcessing

      protected void onProcessing(Request request, HttpFields responseHeaders)