Class RemotingCall

  • All Implemented Interfaces:
    Externalizable, Serializable, org.red5.server.api.service.IPendingServiceCall, org.red5.server.api.service.IServiceCall

    public class RemotingCall
    extends org.red5.server.service.PendingCall
    Remoting method call, specific pending call.
    Author:
    The Red5 Project, Luke Hubbard, Codegent Ltd ([email protected])
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      String clientCallback
      Client callback name
      static String HANDLER_ERROR
      Handler error posfix constant
      static String HANDLER_SUCCESS
      Handler success posfix constant
      boolean isAMF3  
      boolean isMessaging  
      • Fields inherited from class org.red5.server.service.Call

        arguments, exception, serviceMethodName, serviceName, status, STATUS_ACCESS_DENIED, STATUS_APP_SHUTTING_DOWN, STATUS_GENERAL_EXCEPTION, STATUS_INVOCATION_EXCEPTION, STATUS_METHOD_NOT_FOUND, STATUS_NOT_CONNECTED, STATUS_PENDING, STATUS_SERVICE_NOT_FOUND, STATUS_SUCCESS_NULL, STATUS_SUCCESS_RESULT, STATUS_SUCCESS_VOID
    • Constructor Summary

      Constructors 
      Constructor Description
      RemotingCall()
      Default / void constructor to prevent runtime exception.
      RemotingCall​(String serviceName, String serviceMethod, Object[] args, String callback, boolean isAMF3, boolean isMessaging)
      Create remoting call from service name, method name, list of arguments and callback name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getClientResponse()
      Getter for client response.
      Object getClientResult()
      Getter for client result.
      void setClientCallback​(String clientCallback)
      Setter for client callback.
      • Methods inherited from class org.red5.server.service.PendingCall

        getCallbacks, getResult, readExternal, registerCallback, setResult, unregisterCallback, writeExternal
      • Methods inherited from class org.red5.server.service.Call

        getArguments, getException, getReadTime, getServiceMethodName, getServiceName, getStatus, getWriteTime, isSuccess, setArguments, setException, setServiceMethodName, setServiceName, setStatus, toString
      • Methods inherited from interface org.red5.server.api.service.IServiceCall

        getArguments, getException, getReadTime, getServiceMethodName, getServiceName, getStatus, getWriteTime, isSuccess, setException, setStatus
    • Field Detail

      • clientCallback

        public String clientCallback
        Client callback name
      • isAMF3

        public boolean isAMF3
      • isMessaging

        public boolean isMessaging
    • Constructor Detail

      • RemotingCall

        public RemotingCall()
        Default / void constructor to prevent runtime exception.
      • RemotingCall

        public RemotingCall​(String serviceName,
                            String serviceMethod,
                            Object[] args,
                            String callback,
                            boolean isAMF3,
                            boolean isMessaging)
        Create remoting call from service name, method name, list of arguments and callback name.
        Parameters:
        serviceName - Service name
        serviceMethod - Service method name
        args - Parameters passed to method
        callback - Name of client callback
        isAMF3 - Does the client support AMF3?
        isMessaging - Is this a Flex messaging request?
    • Method Detail

      • setClientCallback

        public void setClientCallback​(String clientCallback)
        Setter for client callback.
        Parameters:
        clientCallback - Client callback
      • getClientResponse

        public String getClientResponse()
        Getter for client response.
        Returns:
        Client response
      • getClientResult

        public Object getClientResult()
        Getter for client result.
        Returns:
        Client result