Class HttpConnectionOverFCGI.ResponseListener

    • Constructor Detail

      • ResponseListener

        private ResponseListener()
    • Method Detail

      • onBegin

        public void onBegin​(int request,
                            int code,
                            java.lang.String reason)
        Specified by:
        onBegin in interface ClientParser.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,
                                 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
      • noChannel

        private void noChannel​(int request)