public class Request extends HashMap<String,String>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Request(int method,
String url) |
Request(int method,
String url,
MimeMultipart entity) |
Request(int method,
String url,
String entity) |
Modifier and Type | Method and Description |
---|---|
MimeMultipart |
asMultiPartEntity() |
String |
asStringEntity() |
Object |
getEntity() |
int |
getMethod() |
String |
getUrl() |
Object |
handleResult(int status,
String ctype,
String disp,
InputStream stream)
Must read the object from the server response and return it or throw a
RemoteException if server sent an error. |
boolean |
isMultiPart() |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public static final int GET
public static final int POST
public Request(int method, String url)
public Request(int method, String url, MimeMultipart entity)
public int getMethod()
public String getUrl()
public Object getEntity()
public final boolean isMultiPart()
public MimeMultipart asMultiPartEntity()
public String asStringEntity()
public Object handleResult(int status, String ctype, String disp, InputStream stream) throws Exception
RemoteException
if server sent an error.Exception
Copyright © 2011 Nuxeo SA. All Rights Reserved.