org.nuxeo.ecm.automation.client.jaxrs.spi
Class Request
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.String>
org.nuxeo.ecm.automation.client.jaxrs.spi.Request
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.String>
public class Request
- extends java.util.HashMap<java.lang.String,java.lang.String>
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Field Summary |
static int |
GET
|
static int |
POST
|
Constructor Summary |
Request(int method,
java.lang.String url)
|
Request(int method,
java.lang.String url,
javax.mail.internet.MimeMultipart entity)
|
Request(int method,
java.lang.String url,
java.lang.String entity)
|
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
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,
java.lang.String url)
Request
public Request(int method,
java.lang.String url,
javax.mail.internet.MimeMultipart entity)
Request
public Request(int method,
java.lang.String url,
java.lang.String entity)
getMethod
public int getMethod()
getUrl
public java.lang.String getUrl()
getEntity
public java.lang.Object getEntity()
isMultiPart
public final boolean isMultiPart()
asMultiPartEntity
public javax.mail.internet.MimeMultipart asMultiPartEntity()
asStringEntity
public java.lang.String asStringEntity()
getResult
public java.lang.Object getResult()
handleResult
public java.lang.Object handleResult(int status,
java.lang.String ctype,
java.lang.String disp,
java.io.InputStream stream)
throws java.lang.Exception
- Must read the object from the server response and return it or throw a
RemoteException
if server sent an error.
- Throws:
java.lang.Exception
Copyright © 2010 Nuxeo SAS. All Rights Reserved.