public interface ConnectionStateProcessor
| Modifier and Type | Method and Description |
|---|---|
default ConnectionAuthenticatingStateProcessor |
allowAuthentication()
This indicates whether this specific state processor is able to handle authentication requests.
|
default boolean |
handleMessageIndependently(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
MessageExecutionContext executionContext)
Allow the state processor to take over the entire processing of a given message.
|
default boolean |
socketProcessingIsFinished()
This indicates whether this state is capable of receiving any more messages
|
void |
validateOperation(MessageExecutionContext messageContext,
OperationContext operationContext) |
void validateOperation(MessageExecutionContext messageContext, OperationContext operationContext) throws ConnectionStateException
ConnectionStateException - if incapable of handling the given operationContext when the
connection is in the state contained in the provided messageContext. Otherwise, does
nothing.default ConnectionAuthenticatingStateProcessor allowAuthentication() throws ConnectionStateException
ConnectionStateException - if unable to handle handshakes in this state.default boolean handleMessageIndependently(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
MessageExecutionContext executionContext)
throws java.io.IOException
java.io.IOExceptiondefault boolean socketProcessingIsFinished()