Package org.eclipse.jetty.fcgi.parser
Class ClientParser.EndRequestListener
- java.lang.Object
-
- org.eclipse.jetty.fcgi.parser.ClientParser.EndRequestListener
-
- All Implemented Interfaces:
ClientParser.Listener,Parser.Listener
- Enclosing class:
- ClientParser
private class ClientParser.EndRequestListener extends java.lang.Object implements ClientParser.Listener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.fcgi.parser.ClientParser.Listener
ClientParser.Listener.Adapter
-
-
Field Summary
Fields Modifier and Type Field Description private ClientParser.Listenerlistenerprivate StreamContentParser[]streamParsers
-
Constructor Summary
Constructors Modifier Constructor Description privateEndRequestListener(ClientParser.Listener listener, StreamContentParser... streamParsers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonBegin(int request, int code, java.lang.String reason)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)
-
-
-
Field Detail
-
listener
private final ClientParser.Listener listener
-
streamParsers
private final StreamContentParser[] streamParsers
-
-
Constructor Detail
-
EndRequestListener
private EndRequestListener(ClientParser.Listener listener, StreamContentParser... streamParsers)
-
-
Method Detail
-
onBegin
public void onBegin(int request, int code, java.lang.String reason)- Specified by:
onBeginin interfaceClientParser.Listener
-
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
-
-