Class HttpRequestDecoder.Result
java.lang.Object
org.jdrupes.httpcodec.Codec.Result
org.jdrupes.httpcodec.Decoder.Result<R>
org.jdrupes.httpcodec.protocols.http.HttpDecoder.Result<HttpResponse>
org.jdrupes.httpcodec.protocols.http.server.HttpRequestDecoder.Result
- Enclosing class:
- HttpRequestDecoder
Results from
HttpRequestDecoder
add no additional
information to
HttpDecoder.Result
.This class just provides a factory for creating concrete results.
The class is declared abstract to promote the usage of the factory method.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionResult
(boolean overflow, boolean underflow, boolean headerCompleted, HttpResponse response, boolean responseOnly) Creates a new result. -
Method Summary
Methods inherited from class org.jdrupes.httpcodec.Decoder.Result
equals, hashCode, isHeaderCompleted, isResponseOnly, response, toString
Methods inherited from class org.jdrupes.httpcodec.Codec.Result
closeConnection, isOverflow, isUnderflow
-
Constructor Details
-
Result
public Result(boolean overflow, boolean underflow, boolean headerCompleted, HttpResponse response, boolean responseOnly) Creates a new result.- Parameters:
overflow
- true if the data didn’t fit in the out bufferunderflow
- true if more data is expectedheaderCompleted
- true if the header has completely been decodedresponse
- a response to send due to an errorresponseOnly
- if the result includes a response this flag indicates that no further processing besides sending the response is required
-