@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented public @interface WampCallListener
CallMessage and the procURI matches one of the listed values of the annotation.
If no procURI is provided the method is accessible by the procURI 'beanName.methodName'
In the following example the method can be called by sending a CallMessage with the
procURI 'myService.doSomething'
@Service
public class MyService {
@WampCallListener
public void doSomething(CallMessage message) {
}
}
The return value of such annotated method (if any) will be sent back to the calling
client with a CallResultMessage or CallErrorMessage.| Modifier and Type | Optional Element and Description |
|---|---|
boolean[] |
authenticated
If true a call to this annotated method has to be authenticated.
|
String[] |
value
ProcURI for the call.
|
public abstract String[] value
public abstract boolean[] authenticated
WampAuthenticated and the
global setting WampConfigurer.authenticationRequired()Copyright © 2014–2015. All rights reserved.