Class WsDecoder.Result.Factory
java.lang.Object
org.jdrupes.httpcodec.Codec.Result.Factory
org.jdrupes.httpcodec.Decoder.Result.Factory<WsFrameHeader>
org.jdrupes.httpcodec.protocols.websocket.WsDecoder.Result.Factory
- Enclosing class:
- WsDecoder.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnewResult
(boolean overflow, boolean underflow, boolean closeConnection, boolean headerCompleted, WsFrameHeader response, boolean responseOnly) Create a new result.
-
Constructor Details
-
Factory
protected Factory()
-
-
Method Details
-
newResult
public WsDecoder.Result newResult(boolean overflow, boolean underflow, boolean closeConnection, boolean headerCompleted, WsFrameHeader response, boolean responseOnly) Create a 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 closedheaderCompleted
- 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- Returns:
- the result
-