public class InvocableWampHandlerMethod
extends org.springframework.messaging.handler.HandlerMethod
HandlerMethodArgumentResolvers.
Use setMessageMethodArgumentResolvers(HandlerMethodArgumentResolver) to
customize the list of argument resolvers.
| Constructor and Description |
|---|
InvocableWampHandlerMethod(org.springframework.messaging.handler.HandlerMethod handlerMethod,
MethodParameterConverter methodParameterConverter)
Create an instance from a
HandlerMethod. |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
doInvoke(Object... args)
Invoke the handler method with the given argument values.
|
protected String |
getDetailedErrorMessage(String message)
Adds HandlerMethod details such as the controller type and method signature to the
given error message.
|
Object |
invoke(WampMessage message,
Object... providedArgs)
Invoke the method with the given message.
|
void |
setMessageMethodArgumentResolvers(org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver argumentResolvers) |
void |
setParameterNameDiscoverer(org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer)
Set the ParameterNameDiscoverer for resolving parameter names when needed (e.g.
|
createWithResolvedBean, equals, getBean, getBeanType, getBridgedMethod, getMethod, getMethodAnnotation, getMethodParameters, getResolvedFromHandlerMethod, getReturnType, getReturnValueType, getShortLogMessage, hashCode, hasMethodAnnotation, isVoid, toStringpublic InvocableWampHandlerMethod(org.springframework.messaging.handler.HandlerMethod handlerMethod,
MethodParameterConverter methodParameterConverter)
HandlerMethod.public void setMessageMethodArgumentResolvers(org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolver argumentResolvers)
public void setParameterNameDiscoverer(org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer)
Default is a DefaultParameterNameDiscoverer.
public Object invoke(WampMessage message, Object... providedArgs) throws Exception
Exception - raised if no suitable argument resolver can be found, or the
method raised an exceptionprotected String getDetailedErrorMessage(String message)
message - error message to append the HandlerMethod details toCopyright © 2014–2017. All rights reserved.