Class HttpDecoder.Result.Factory<R extends MessageHeader>
java.lang.Object
org.jdrupes.httpcodec.Codec.Result.Factory
org.jdrupes.httpcodec.Decoder.Result.Factory<R>
org.jdrupes.httpcodec.protocols.http.HttpDecoder.Result.Factory<R>
- Direct Known Subclasses:
HttpRequestDecoder.Result.Factory
,HttpResponseDecoder.Result.Factory
- Enclosing class:
- HttpDecoder.Result<R extends MessageHeader>
protected abstract static class HttpDecoder.Result.Factory<R extends MessageHeader>
extends Decoder.Result.Factory<R>
A factory for creating new Results.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract HttpDecoder.Result<R>
newResult
(boolean overflow, boolean underflow) Create a new result.
-
Constructor Details
-
Factory
protected Factory()
-
-
Method Details
-
newResult
Create a new result.Implementing classes can obtain the value for
Codec.Result.closeConnection()
fromHttpDecoder.isClosed()
.- Parameters:
overflow
- true if the data didn’t fit in the out bufferunderflow
- true if more data is expected- Returns:
- the result
-