Class Parser.Listener.Adapter

    • Constructor Summary

      Constructors 
      Constructor Description
      Adapter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean onContent​(int request, FCGI.StreamType stream, java.nio.ByteBuffer buffer)  
      void onEnd​(int request)  
      void onFailure​(int request, java.lang.Throwable failure)  
      void onHeader​(int request, HttpField field)  
      boolean onHeaders​(int request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Adapter

        public Adapter()
    • Method Detail

      • 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,
                                 java.nio.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:
        Parser.parse(java.nio.ByteBuffer)
      • onFailure

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