org.eclipse.swordfish.core.resolver.backend
Interface ClientRequest

All Known Implementing Classes:
ClientRequestImpl

public interface ClientRequest

Entity for out-bound request to RESTful service


Method Summary
 java.lang.Object getEntity()
           
 java.lang.Class<?> getEntityType()
           
 ProxyConstants.Method getMethod()
          Get the method used to invoke remote service.
 java.util.Map<java.lang.String,java.lang.String> getProperties()
          Get properties for the request.
 java.net.URI getURI()
          Get the URI (absolute or relative) of remote service.
 void setEntity(java.lang.Object entity)
           
 void setEntityType(java.lang.Class<?> entityType)
           
 void setMethod(ProxyConstants.Method method)
          Set the method used to invoke remote service.
 void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
          Set properties for the request.
 void setURI(java.net.URI uri)
          Set the URI of remote service.
 

Method Detail

getMethod

ProxyConstants.Method getMethod()
Get the method used to invoke remote service.

Returns:
a ProxyConstants.Method constant representing a HTTP method.

setMethod

void setMethod(ProxyConstants.Method method)
Set the method used to invoke remote service.


getProperties

java.util.Map<java.lang.String,java.lang.String> getProperties()
Get properties for the request.

Returns:
a Map containing request specific properties.

setProperties

void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Set properties for the request.


getEntity

java.lang.Object getEntity()

setEntity

void setEntity(java.lang.Object entity)

getEntityType

java.lang.Class<?> getEntityType()

setEntityType

void setEntityType(java.lang.Class<?> entityType)

getURI

java.net.URI getURI()
Get the URI (absolute or relative) of remote service.

Returns:
a URL of a service.

setURI

void setURI(java.net.URI uri)
Set the URI of remote service.