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.
-
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.
-
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
-