Package org.eclipse.jetty.fcgi.parser
Class Parser.Listener.Adapter
- java.lang.Object
-
- org.eclipse.jetty.fcgi.parser.Parser.Listener.Adapter
-
- All Implemented Interfaces:
Parser.Listener
- Direct Known Subclasses:
ClientParser.Listener.Adapter
,ServerParser.Listener.Adapter
- Enclosing interface:
- Parser.Listener
public static class Parser.Listener.Adapter extends java.lang.Object implements Parser.Listener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.fcgi.parser.Parser.Listener
Parser.Listener.Adapter
-
-
Constructor Summary
Constructors Constructor Description Adapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
onContent(int request, FCGI.StreamType stream, java.nio.ByteBuffer buffer)
void
onEnd(int request)
void
onFailure(int request, java.lang.Throwable failure)
void
onHeader(int request, HttpField field)
boolean
onHeaders(int request)
-
-
-
Method Detail
-
onHeader
public void onHeader(int request, HttpField field)
- Specified by:
onHeader
in interfaceParser.Listener
-
onHeaders
public boolean onHeaders(int request)
- Specified by:
onHeaders
in interfaceParser.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 interfaceParser.Listener
- Parameters:
request
- the request idstream
- the stream typebuffer
- the content bytes- Returns:
- true to signal to the parser to stop parsing, false to continue parsing
- See Also:
Parser.parse(java.nio.ByteBuffer)
-
onEnd
public void onEnd(int request)
- Specified by:
onEnd
in interfaceParser.Listener
-
onFailure
public void onFailure(int request, java.lang.Throwable failure)
- Specified by:
onFailure
in interfaceParser.Listener
-
-