Class ServerFCGIConnection.ServerListener

    • Constructor Detail

      • ServerListener

        private ServerListener()
    • 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