Class Parser

  • Direct Known Subclasses:
    ClientParser, ServerParser

    public abstract class Parser
    extends java.lang.Object

    The FastCGI protocol exchanges frames.

     struct frame {
         ubyte version;
         ubyte type;
         ushort requestId;
         ushort contentLength;
         ubyte paddingLength;
         ubyte reserved;
         ubyte[] content;
         ubyte[] padding;
     }
     

    Depending on the type, the content may have a different format, so there are specialized content parsers.

    See Also:
    HeaderParser, ContentParser
    • Field Detail

    • Constructor Detail

      • Parser

        public Parser()
    • Method Detail

      • parse

        public boolean parse​(java.nio.ByteBuffer buffer)
        Parameters:
        buffer - the bytes to parse
        Returns:
        true if the caller should stop parsing, false if the caller should continue parsing