Package org.eclipse.jetty.fcgi.parser
Class HeaderParser
- java.lang.Object
-
- org.eclipse.jetty.fcgi.parser.HeaderParser
-
public class HeaderParser extends java.lang.Object
Parser for FastCGI frame headers.
struct frame_header { ubyte version; ubyte type; ushort requestId; ushort contentLength; ubyte paddingLength; ubyte reserved; }
- See Also:
Parser
-
-
Constructor Summary
Constructors Constructor Description HeaderParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getContentLength()
FCGI.FrameType
getFrameType()
int
getPaddingLength()
int
getRequest()
boolean
parse(java.nio.ByteBuffer buffer)
Parses the bytes in the givenbuffer
as FastCGI header bytesprotected void
reset()
-
-
-
Method Detail
-
parse
public boolean parse(java.nio.ByteBuffer buffer)
Parses the bytes in the givenbuffer
as FastCGI header bytes- Parameters:
buffer
- the bytes to parse- Returns:
- whether there were enough bytes for a FastCGI header
-
getFrameType
public FCGI.FrameType getFrameType()
-
getRequest
public int getRequest()
-
getContentLength
public int getContentLength()
-
getPaddingLength
public int getPaddingLength()
-
reset
protected void reset()
-
-