@Retention(RUNTIME) @Target(METHOD) public @interface OnMessage
PushEndpoint annotated classes.
A PushEndpoint may annotate one or more methods with OnMessage.
Methods will be invoked when one of many Decoder, if an InputStream,
Reader or Stringmatch the method signature. For example
| Modifier and Type | Optional Element | Description |
|---|---|---|
Class[] |
decoders |
A list of
Decoder used to decode the request's body String or bytes into an object. |
Class[] |
encoders |
A list of
Encoder used to encode the method's return type into a response's String or bytes. |
Copyright © 2018. All rights reserved.