Class StreamContentParser

java.lang.Object
org.eclipse.jetty.fcgi.parser.ContentParser
org.eclipse.jetty.fcgi.parser.StreamContentParser
Direct Known Subclasses:
ResponseContentParser

public class StreamContentParser extends ContentParser

A stream content parser parses frame bodies of type STDIN, STDOUT and STDERR.

STDOUT frame bodies are handled specially by ResponseContentParser.

  • Constructor Details

  • Method Details

    • parse

      public ContentParser.Result parse(ByteBuffer buffer)
      Description copied from class: ContentParser

      Parses the bytes in the given buffer as FastCGI frame content bytes.

      Specified by:
      parse in class ContentParser
      Parameters:
      buffer - the bytes to parse
      Returns:
      the result of the parsing
    • noContent

      public boolean noContent()
      Description copied from class: ContentParser

      Invoked by the Parser when the frame content length is zero.

      Overrides:
      noContent in class ContentParser
      Returns:
      whether the parsing should stop
    • onContent

      protected boolean onContent(ByteBuffer buffer)
    • end

      protected void end(int request)