public class Request extends HashMap<String,String>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected static Pattern |
ATTR_PATTERN |
protected Object |
entity |
static int |
GET |
protected boolean |
isMultiPart |
protected int |
method |
static int |
POST |
protected String |
url |
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() |
protected static String |
getFileName(String ctype) |
int |
getMethod() |
String |
getUrl() |
protected void |
handleException(int status,
String ctype,
InputStream stream) |
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() |
protected static Blob |
readBlob(String ctype,
String fileName,
InputStream in) |
protected static Blobs |
readBlobs(String ctype,
InputStream in) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public static final int GET
public static final int POST
protected static Pattern ATTR_PATTERN
protected final int method
protected final boolean isMultiPart
public int getMethod()
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
protected static Blobs readBlobs(String ctype, InputStream in) throws IOException
IOException
protected static Blob readBlob(String ctype, String fileName, InputStream in) throws IOException
IOException
protected static String getFileName(String ctype)
protected void handleException(int status, String ctype, InputStream stream) throws RemoteException, IOException
RemoteException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.