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 static Pattern |
RFC2231_ATTR_PATTERN |
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() |
static MultipartInput |
buildMultipartInput(Object input,
String content) |
Object |
getEntity() |
protected static String |
getFileName(String ctype) |
static String |
getHeaderValue(org.apache.http.Header[] headers,
String name) |
int |
getMethod() |
String |
getUrl() |
protected void |
handleException(int status,
String ctype,
InputStream stream) |
Object |
handleResult(int status,
org.apache.http.Header[] headers,
InputStream stream,
org.apache.http.protocol.HttpContext ctx)
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) |
protected static Blob |
readStringBlob(String ctype,
String fileName,
String content) |
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 RFC2231_ATTR_PATTERN
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, org.apache.http.Header[] headers, InputStream stream, org.apache.http.protocol.HttpContext ctx) throws RemoteException, IOException
RemoteException
if server sent an
error.RemoteException
IOException
public static MultipartInput buildMultipartInput(Object input, String content) throws IOException
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 Blob readStringBlob(String ctype, String fileName, String content)
protected static String getFileName(String ctype)
protected void handleException(int status, String ctype, InputStream stream) throws RemoteException
RemoteException
public static String getHeaderValue(org.apache.http.Header[] headers, String name)
Copyright © 2019 Nuxeo. All rights reserved.