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, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic static final int GET
public static final int POST
protected static Pattern ATTR_PATTERN
protected final int method
protected final String url
protected final boolean isMultiPart
protected Object entity
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 Exception
RemoteException if server sent an error.Exceptionprotected static Blobs readBlobs(String ctype, InputStream in) throws Exception
Exceptionprotected static Blob readBlob(String ctype, String fileName, InputStream in) throws Exception
Exceptionprotected void handleException(int status,
String ctype,
InputStream stream)
throws Exception
ExceptionCopyright © 2018. All rights reserved.