Class Parser.Listener.Adapter

java.lang.Object
org.eclipse.jetty.fcgi.parser.Parser.Listener.Adapter
All Implemented Interfaces:
Parser.Listener
Direct Known Subclasses:
ClientParser.Listener.Adapter, ServerParser.Listener.Adapter
Enclosing interface:
Parser.Listener

public static class Parser.Listener.Adapter extends Object implements Parser.Listener
  • Constructor Details

    • Adapter

      public Adapter()
  • Method Details

    • onHeader

      public void onHeader(int request, org.eclipse.jetty.http.HttpField field)
      Specified by:
      onHeader in interface Parser.Listener
    • onHeaders

      public boolean onHeaders(int request)
      Specified by:
      onHeaders in interface Parser.Listener
      Parameters:
      request - the request id
      Returns:
      true to signal to the parser to stop parsing, false to continue parsing
    • onContent

      public boolean onContent(int request, FCGI.StreamType stream, ByteBuffer buffer)
      Specified by:
      onContent in interface Parser.Listener
      Parameters:
      request - the request id
      stream - the stream type
      buffer - the content bytes
      Returns:
      true to signal to the parser to stop parsing, false to continue parsing
      See Also:
    • onEnd

      public void onEnd(int request)
      Specified by:
      onEnd in interface Parser.Listener
    • onFailure

      public void onFailure(int request, Throwable failure)
      Specified by:
      onFailure in interface Parser.Listener