@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented public @interface WampCallListener
value()).
If no topicURI is provided the method listens for the topicURI 'beanName.methodName'
The method doSomething in the following example listens for CALL messages
that are sent to the procURI 'myService.doSomething'.
The method callMe is called by the library when a CALL message with the
procURI 'callMe' arrives.
@Service
public class MyService {
@WampCallListener
public void doSomething(CallMessage message) { }
@WampCallListener('callMe')
public void callMe(String argument) { }
}
A non null return value of this method will be sent back in a CALLRESULT message to the
client which sent the CALL message. If this method throws an exception it will be
wrapped in a CALLERROR message and sent back to the client.| Modifier and Type | Optional Element and Description |
|---|---|
boolean[] |
authenticated
If true a call to this method has to be authenticated.
|
String[] |
value
One or more procURI(s) the method should listen on.
|
public abstract String[] value
public abstract boolean[] authenticated
Takes precedence over WampAuthenticated and the global setting
DefaultWampConfiguration.authenticationRequired()
Copyright © 2014–2017. All rights reserved.