Package org.eclipse.jetty.fcgi.parser
Interface Parser.Listener
-
- All Known Subinterfaces:
ClientParser.Listener
,ServerParser.Listener
- All Known Implementing Classes:
ClientParser.Listener.Adapter
,Parser.Listener.Adapter
,ServerParser.Listener.Adapter
- Enclosing class:
- Parser
public static interface Parser.Listener
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Parser.Listener.Adapter
-
Method Summary
All Methods Instance Methods Abstract 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
void onHeader(int request, HttpField field)
-
onHeaders
boolean onHeaders(int request)
- Parameters:
request
- the request id- Returns:
- true to signal to the parser to stop parsing, false to continue parsing
-
onContent
boolean onContent(int request, FCGI.StreamType stream, java.nio.ByteBuffer buffer)
- 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
void onEnd(int request)
-
onFailure
void onFailure(int request, java.lang.Throwable failure)
-
-