Class HttpRequestDecoder.Result.Factory
java.lang.Object
org.jdrupes.httpcodec.Codec.Result.Factory
org.jdrupes.httpcodec.Decoder.Result.Factory<R>
org.jdrupes.httpcodec.protocols.http.HttpDecoder.Result.Factory<HttpResponse>
org.jdrupes.httpcodec.protocols.http.server.HttpRequestDecoder.Result.Factory
- Enclosing class:
- HttpRequestDecoder.Result
protected static class HttpRequestDecoder.Result.Factory
extends HttpDecoder.Result.Factory<HttpResponse>
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedFactory(HttpRequestDecoder decoder) Creates a new factory for the given decoder.
- 
Method SummaryModifier and TypeMethodDescriptionprotected HttpRequestDecoder.ResultnewResult(boolean overflow, boolean underflow) Overrides the base interface’s factory method in order to make it return the extended return type.newResult(boolean overflow, boolean underflow, boolean headerCompleted, HttpResponse response, boolean responseOnly) Create a new result.
- 
Constructor Details- 
FactoryCreates a new factory for the given decoder.- Parameters:
- decoder- the decoder
 
 
- 
- 
Method Details- 
newResultpublic HttpRequestDecoder.Result newResult(boolean overflow, boolean underflow, boolean headerCompleted, HttpResponse response, boolean responseOnly) Create a new result.- Parameters:
- overflow- true if the data didn’t fit in the out buffer
- underflow- true if more data is expected
- headerCompleted- true if the header has completely been decoded
- response- a response to send due to an error
- responseOnly- if the result includes a response this flag indicates that no further processing besides sending the response is required
- Returns:
- the result
 
- 
newResultOverrides the base interface’s factory method in order to make it return the extended return type.As the HttpRequestDecoderdoes not know about a response, this implementation always returns a result without one. This may be a preliminary result and replaced inHttpRequestDecoder.decode(ByteBuffer, Buffer, boolean).- Specified by:
- newResultin class- HttpDecoder.Result.Factory<HttpResponse>
- Parameters:
- overflow- true if the data didn’t fit in the out buffer
- underflow- true if more data is expected
- Returns:
- the result
 
 
-