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 booleanonContent(int request, FCGI.StreamType stream, java.nio.ByteBuffer buffer)voidonEnd(int request)voidonFailure(int request, java.lang.Throwable failure)voidonHeader(int request, HttpField field)booleanonHeaders(int request)
-
-
-
Method Detail
-
onHeader
public void onHeader(int request, HttpField field)- Specified by:
onHeaderin interfaceParser.Listener
-
onHeaders
public boolean onHeaders(int request)
- Specified by:
onHeadersin 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:
onContentin 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:
onEndin interfaceParser.Listener
-
onFailure
public void onFailure(int request, java.lang.Throwable failure)- Specified by:
onFailurein interfaceParser.Listener
-
-