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,
javax.mail.internet.MimeMultipart entity) |
Request(int method,
String url,
String entity) |
Modifier and Type | Method and Description |
---|---|
javax.mail.internet.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, javax.mail.internet.MimeMultipart entity)
public int getMethod()
public String getUrl()
public Object getEntity()
public final boolean isMultiPart()
public javax.mail.internet.MimeMultipart asMultiPartEntity()
public String asStringEntity()
public Object handleResult(int status, String ctype, String disp, InputStream stream) throws RemoteException, IOException
RemoteException
if server sent an
error.RemoteException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.