org.exoplatform.services.rest.ext.transport
Class SerialRequest
java.lang.Object
org.exoplatform.services.rest.ext.transport.SerialRequest
- All Implemented Interfaces:
- Serializable
public class SerialRequest
- extends Object
- implements Serializable
This class can be used as proxy when need to call RESTful services via RMI
(EJB). Usage : client create instance of SerialRequest, lookup EJB, call bean
method and pass SerialRequest as method parameter. Bean create instance of
GenericContainerRequest, GenericContainerResponse then uses
RequestHandler.
- Version:
- $Id: $
- Author:
- Andrey Parfonov
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerialRequest
public SerialRequest(String method,
URI serviceURI,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
SerialInputData data)
getMethod
public String getMethod()
- Returns:
- HTTP method, e.g. (GET, POST, DELETE, etc.)
getUri
public URI getUri()
- Returns:
- resource's relative URI
getHeaders
public javax.ws.rs.core.MultivaluedMap<String,String> getHeaders()
- Returns:
- HTTP headers, see
MultivaluedMap
setHeader
public void setHeader(String name,
String value)
- Set HTTP header with supplied name and value, preset header with this name
will be overridden.
- Parameters:
name - header namevalue - header value
addHeader
public void addHeader(String name,
String value)
- HTTP header with supplied name and value.
- Parameters:
name - header namevalue - header value
getData
public SerialInputData getData()
- Returns:
- See
SerialInputData
Copyright © 2012 eXo Platform SAS. All Rights Reserved.