Class DSRemotingClient

  • All Implemented Interfaces:
    org.red5.io.client.IRemotingClient

    public class DSRemotingClient
    extends org.red5.server.net.remoting.RemotingClient
    Client interface for remoting calls directed at an LCDS or BlazeDS style service.
    Author:
    The Red5 Project, Paul Gregoire (mondain@gmail.com)
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.red5.server.net.remoting.RemotingClient

        org.red5.server.net.remoting.RemotingClient.RemotingWorker
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.slf4j.Logger log  
      • Fields inherited from class org.red5.server.net.remoting.RemotingClient

        appendToUrl, client, CONTENT_TYPE, DEFAULT_TIMEOUT, executor, headers, poolSize, url
    • Constructor Summary

      Constructors 
      Constructor Description
      DSRemotingClient()
      Dummy constructor used by the spring configuration.
      DSRemotingClient​(String url)
      Create new remoting client for the given url.
    • Field Detail

      • log

        protected static org.slf4j.Logger log
    • Constructor Detail

      • DSRemotingClient

        public DSRemotingClient()
        Dummy constructor used by the spring configuration.
      • DSRemotingClient

        public DSRemotingClient​(String url)
        Create new remoting client for the given url.
        Parameters:
        url - URL to connect to
    • Method Detail

      • getDataSourceId

        public String getDataSourceId()
      • setDataSourceId

        public void setDataSourceId​(String dataSourceId)
      • processHeaders

        protected void processHeaders​(org.apache.mina.core.buffer.IoBuffer in)
        Process any headers sent in the response.
        Overrides:
        processHeaders in class org.red5.server.net.remoting.RemotingClient
        Parameters:
        in - Byte buffer with response data
      • invokeMethod

        public Object invokeMethod​(String method,
                                   Object[] params)
        Invoke a method synchronously on the remoting server.
        Specified by:
        invokeMethod in interface org.red5.io.client.IRemotingClient
        Overrides:
        invokeMethod in class org.red5.server.net.remoting.RemotingClient
        Parameters:
        method - Method name
        params - Parameters passed to method
        Returns:
        the result of the method call
      • main

        public static void main​(String[] args)