Class ProtocolDetectionResult<T>
java.lang.Object
io.netty.handler.codec.ProtocolDetectionResult<T>
- Type Parameters:
T- the type of the protocol
Result of detecting a protocol.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ProtocolDetectionResultprivate static final ProtocolDetectionResultprivate final Tprivate final ProtocolDetectionState -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateProtocolDetectionResult(ProtocolDetectionState state, T result) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ProtocolDetectionResult<T> detected(T protocol) Returns aProtocolDetectionResultwhich holds the detected protocol.static <T> ProtocolDetectionResult<T> invalid()Returns aProtocolDetectionResultthat signals the data was invalid for the protocol.static <T> ProtocolDetectionResult<T> Returns aProtocolDetectionResultthat signals that more data is needed to detect the protocol.state()Return theProtocolDetectionState.
-
Field Details
-
NEEDS_MORE_DATA
-
INVALID
-
state
-
result
-
-
Constructor Details
-
ProtocolDetectionResult
-
-
Method Details
-
needsMoreData
Returns aProtocolDetectionResultthat signals that more data is needed to detect the protocol. -
invalid
Returns aProtocolDetectionResultthat signals the data was invalid for the protocol. -
detected
Returns aProtocolDetectionResultwhich holds the detected protocol. -
state
Return theProtocolDetectionState. If the state isProtocolDetectionState.DETECTEDyou can retrieve the protocol viadetectedProtocol(). -
detectedProtocol
-