Class HttpEncoder.Result.Factory
java.lang.Object
org.jdrupes.httpcodec.Codec.Result.Factory
org.jdrupes.httpcodec.protocols.http.HttpEncoder.Result.Factory
- Direct Known Subclasses:
HttpRequestEncoder.Result.Factory
,HttpResponseEncoder.Result.Factory
- Enclosing class:
- HttpEncoder.Result
A factory for creating new Results.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnewResult
(boolean overflow, boolean underflow, boolean closeConnection) Create new result.
-
Constructor Details
-
Factory
protected Factory()
-
-
Method Details
-
newResult
Create new result.- Parameters:
overflow
- true if the data didn’t fit in the out bufferunderflow
- true if more data is expectedcloseConnection
- true if the connection should be closed- Returns:
- the result
-