org.eclipse.ecf.remoteservice.rest
Class RestCall

java.lang.Object
  extended by org.eclipse.ecf.remoteservice.RemoteCall
      extended by org.eclipse.ecf.remoteservice.rest.RestCall
All Implemented Interfaces:
java.io.Serializable, IRemoteCall, IRestCall

public class RestCall
extends RemoteCall
implements IRestCall, java.io.Serializable

Implementation of IRestCall. Note that RestCallFactory should typically be used to construct instances.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.eclipse.ecf.remoteservice.RemoteCall
method, parameters, timeout
 
Fields inherited from interface org.eclipse.ecf.remoteservice.rest.IRestCall
DEFAULT_TIMEOUT
 
Constructor Summary
RestCall(java.lang.String fqMethod)
           
RestCall(java.lang.String fqMethod, java.lang.Object[] params)
           
RestCall(java.lang.String fqMethod, java.lang.Object[] params, java.util.Map requestHeaders)
           
RestCall(java.lang.String fqMethod, java.lang.Object[] params, java.util.Map requestHeaders, long timeout)
           
 
Method Summary
 java.util.Map getRequestHeaders()
          Provides any call-specific request headers.
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ecf.remoteservice.RemoteCall
getMethod, getParameters, getTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ecf.remoteservice.IRemoteCall
getMethod, getParameters, getTimeout
 

Constructor Detail

RestCall

public RestCall(java.lang.String fqMethod,
                java.lang.Object[] params,
                java.util.Map requestHeaders,
                long timeout)

RestCall

public RestCall(java.lang.String fqMethod,
                java.lang.Object[] params,
                java.util.Map requestHeaders)

RestCall

public RestCall(java.lang.String fqMethod,
                java.lang.Object[] params)

RestCall

public RestCall(java.lang.String fqMethod)
Method Detail

getRequestHeaders

public java.util.Map getRequestHeaders()
Description copied from interface: IRestCall
Provides any call-specific request headers.

Specified by:
getRequestHeaders in interface IRestCall
Returns:
a Map object which contains and additional header parameters (String->String). May be null.

toString

public java.lang.String toString()
Overrides:
toString in class RemoteCall