@Retention(value=RUNTIME) @Target(value=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 String
match the method signature. For example
Modifier and Type | Optional Element and 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 © 2017. All rights reserved.