Class HttpResponseDecoder.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<HttpRequest>
org.jdrupes.httpcodec.protocols.http.client.HttpResponseDecoder.Result.Factory
- Enclosing class:
- HttpResponseDecoder.Result
protected static class HttpResponseDecoder.Result.Factory
extends HttpDecoder.Result.Factory<HttpRequest>
The Factory for (extended) results.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Factory
(HttpResponseDecoder decoder) Creates a new factory for the given decoder. -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpResponseDecoder.Result
newResult
(boolean overflow, boolean underflow) Create a new (preliminary) result.newResult
(boolean overflow, boolean underflow, boolean closeConnection, boolean headerCompleted, String newProtocol, Encoder<?, ?> newEncoder, Decoder<?, ?> newDecoder)
-
Constructor Details
-
Factory
Creates a new factory for the given decoder.- Parameters:
decoder
- the decoder
-
-
Method Details
-
newResult
public HttpResponseDecoder.Result newResult(boolean overflow, boolean underflow, boolean closeConnection, boolean headerCompleted, String newProtocol, Encoder<?, ?> newEncoder, Decoder<?, ?> newDecoder) -
newResult
Create a new (preliminary) result.This is invoked by the base class. We cannot supply the missing information yet. If necessary the result will be modified in
HttpResponseDecoder.decode(ByteBuffer, Buffer, boolean)
.- Specified by:
newResult
in classHttpDecoder.Result.Factory<HttpRequest>
- Parameters:
overflow
- true if the data didn’t fit in the out bufferunderflow
- true if more data is expected- Returns:
- the result
-