Package org.red5.server.messaging

Examples of org.red5.server.messaging.ServiceAdapter.invoke()


  protected boolean handleRemotingPacket(HttpServletRequest req,
      IContext context, IScope scope, RemotingPacket message) {
    log.debug("Handling remoting packet");
    final IServiceInvoker invoker = context.getServiceInvoker();
    for (RemotingCall call : message.getCalls()) {
      invoker.invoke(call, scope);
    }
    return true;
  }

  /**
 
View Full Code Here


    if (endpoint instanceof ServiceAdapter) {
      log.debug("Endpoint is a ServiceAdapter so message will be invoked");
      ServiceAdapter adapter = (ServiceAdapter) endpoint;
      //the result of the invocation will make up the message body
      result.body = adapter.invoke(msg);
    } else {
      //get arguments
        Object[] args = null;
        try {
          log.debug("Body: {} type: {}", msg.body, msg.body.getClass().getName());
View Full Code Here

      result.setDestination(msg.getDestination());
      result.setHeaders(headers);
      //get the adapter
      ServiceAdapter adapter = (ServiceAdapter) endpoint;
      //log.debug("Invoke: {}", adapter.invoke(msg));
      Object o = adapter.invoke(msg);
      //the result of the invocation will make up the message body   
      //AsyncMessage ext = new AsyncMessage();
      //ext.setClientId(msg.getClientId());
      //ext.setCorrelationId(result.getMessageId());
      //ext.setBody(o);
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.