Package ch.rasc.wampspring.support

Examples of ch.rasc.wampspring.support.InvocableHandlerMethod.invoke()


      try {
        Object[] arguments = null;
        if (callMessage.getArguments() != null) {
          arguments = callMessage.getArguments().toArray();
        }
        Object returnValue = invocableHandlerMethod.invoke(callMessage, arguments);
        CallResultMessage callResultMessage = new CallResultMessage(callMessage.getCallID(), returnValue);
        wampMessageSender.sendMessageToClient(sessionId, callResultMessage);
      } catch (Exception ex) {
        CallErrorMessage callErrorMessage = new CallErrorMessage(callMessage.getCallID(), "", ex.toString());
        wampMessageSender.sendMessageToClient(sessionId, callErrorMessage);
View Full Code Here


      InvocableHandlerMethod invocableHandlerMethod = new InvocableHandlerMethod(handlerMethod, objectMapper,
          conversionService);
      invocableHandlerMethod.setMessageMethodArgumentResolvers(this.argumentResolvers);

      try {
        Object returnValue = invocableHandlerMethod.invoke(message, argument);
        if (returnValue != null) {
          Set<String> mySessionId = Collections.singleton(message
              .<String> getHeader(WampMessageHeader.WEBSOCKET_SESSION_ID));
          for (String replyToTopicURI : handlerMethod.getReplyTo()) {
            if (StringUtils.hasText(replyToTopicURI)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.