org.nuxeo.ecm.automation.client.jaxrs.spi
Class Request
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,String>
org.nuxeo.ecm.automation.client.jaxrs.spi.Request
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,String>
public class Request
- extends HashMap<String,String>
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
Field Summary |
static int |
GET
|
static int |
POST
|
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
GET
public static final int GET
- See Also:
- Constant Field Values
POST
public static final int POST
- See Also:
- Constant Field Values
Request
public Request(int method,
String url)
Request
public Request(int method,
String url,
MimeMultipart entity)
Request
public Request(int method,
String url,
String entity)
getMethod
public int getMethod()
getUrl
public String getUrl()
getEntity
public Object getEntity()
isMultiPart
public final boolean isMultiPart()
asMultiPartEntity
public MimeMultipart asMultiPartEntity()
asStringEntity
public String asStringEntity()
handleResult
public Object handleResult(int status,
String ctype,
String disp,
InputStream stream)
throws Exception
- Must read the object from the server response and return it or throw a
RemoteException
if server sent an error.
- Throws:
Exception
Copyright © 2011 Nuxeo SAS. All Rights Reserved.