Package org.red5.client.net.remoting
Class DSRemotingClient
java.lang.Object
org.red5.server.net.remoting.RemotingClient
org.red5.client.net.remoting.DSRemotingClient
- All Implemented Interfaces:
org.red5.io.client.IRemotingClient
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
RemotingClient.RemotingWorker -
Field Summary
FieldsFields inherited from class org.red5.server.net.remoting.RemotingClient
appendToUrl, client, CONTENT_TYPE, DEFAULT_TIMEOUT, executor, headers, poolSize, url -
Constructor Summary
ConstructorsConstructorDescriptionDummy constructor used by the spring configuration.DSRemotingClient(String url) Create new remoting client for the given url. -
Method Summary
Modifier and TypeMethodDescriptioninvokeMethod(String method, Object[] params) Invoke a method synchronously on the remoting server.static voidprotected voidprocessHeaders(org.apache.mina.core.buffer.IoBuffer in) Process any headers sent in the response.voidsetDataSourceId(String dataSourceId) Methods inherited from class org.red5.server.net.remoting.RemotingClient
addHeader, getPoolSize, invokeMethod, removeHeader, resetCredentials, setCredentials, setPoolSize
-
Field Details
-
log
protected static org.slf4j.Logger log
-
-
Constructor Details
-
DSRemotingClient
public DSRemotingClient()Dummy constructor used by the spring configuration. -
DSRemotingClient
Create new remoting client for the given url.- Parameters:
url- URL to connect to
-
-
Method Details
-
getDataSourceId
-
setDataSourceId
-
processHeaders
protected void processHeaders(org.apache.mina.core.buffer.IoBuffer in) Process any headers sent in the response.- Overrides:
processHeadersin classRemotingClient- Parameters:
in- Byte buffer with response data
-
invokeMethod
Invoke a method synchronously on the remoting server.- Specified by:
invokeMethodin interfaceorg.red5.io.client.IRemotingClient- Overrides:
invokeMethodin classRemotingClient- Parameters:
method- Method nameparams- Parameters passed to method- Returns:
- the result of the method call
-
main
-