Interface IJsrMethod
public interface IJsrMethod
-
Method Summary
Modifier and TypeMethodDescriptionvoidIndicate that partial message support is desiredGet the fully qualifed method name {classname}.{methodname}({params}) suitable for using in error messages.Class<? extends javax.websocket.Decoder> Get the Decoder to use for message decodingThe type of message this method can handleThe reflected methodbooleanIndicator that partial message support is enabledvoidsetMessageDecoder(Class<? extends javax.websocket.Decoder> decoderClass) The message decoder class to use.voidsetMessageType(MessageType type) The type of message this method can handle
-
Method Details
-
enablePartialMessageSupport
void enablePartialMessageSupport()Indicate that partial message support is desired -
getFullyQualifiedMethodName
String getFullyQualifiedMethodName()Get the fully qualifed method name {classname}.{methodname}({params}) suitable for using in error messages.- Returns:
- the fully qualified method name for end users
-
getMessageDecoder
Class<? extends javax.websocket.Decoder> getMessageDecoder()Get the Decoder to use for message decoding- Returns:
- the decoder class to use for message decoding
-
getMessageType
MessageType getMessageType()The type of message this method can handle- Returns:
- the message type if @
OnMessageannotated, null if unknown/unspecified
-
getMethod
-
isPartialMessageSupportEnabled
boolean isPartialMessageSupportEnabled()Indicator that partial message support is enabled- Returns:
- true if enabled
-
setMessageDecoder
The message decoder class to use.- Parameters:
decoderClass- theDecoderimplementation to use
-
setMessageType
The type of message this method can handle- Parameters:
type- the type of message
-