public class AsyncSession.CompletableRequest extends Request
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description | 
|---|---|
protected CompletableFuture<AsyncSession.CompletableRequest> | 
future  | 
protected org.apache.http.Header[] | 
headers  | 
protected boolean | 
redirected  | 
protected Object | 
result  | 
protected int | 
status  | 
ATTR_PATTERN, entity, GET, isMultiPart, method, POST, RFC2231_ATTR_PATTERN, url| Constructor and Description | 
|---|
CompletableRequest(int method,
                  String url)  | 
CompletableRequest(int method,
                  String url,
                  MultipartInput input)  | 
CompletableRequest(int method,
                  String url,
                  String entity)  | 
| Modifier and Type | Method and Description | 
|---|---|
CompletableFuture<? extends AsyncSession.CompletableRequest> | 
call()  | 
protected String | 
getHeader(String name)  | 
Object | 
getResult()  | 
protected AsyncSession | 
getSession()  | 
int | 
getStatus()  | 
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 | 
isRedirected()  | 
asMultiPartEntity, asStringEntity, buildMultipartInput, getEntity, getFileName, getHeaderValue, getMethod, getUrl, handleException, isMultiPart, readBlob, readBlobs, readStringBlobclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringprotected CompletableFuture<AsyncSession.CompletableRequest> future
protected int status
protected org.apache.http.Header[] headers
protected boolean redirected
public CompletableRequest(int method, String url)
public CompletableRequest(int method, String url, String entity)
public CompletableRequest(int method, String url, MultipartInput input)
public Object handleResult(int status, org.apache.http.Header[] headers, InputStream stream, org.apache.http.protocol.HttpContext ctx) throws RemoteException, IOException
RequestRemoteException if server sent an
 error.handleResult in class RequestRemoteExceptionIOExceptionprotected AsyncSession getSession()
public CompletableFuture<? extends AsyncSession.CompletableRequest> call()
public int getStatus()
public boolean isRedirected()
Copyright © 2019 Nuxeo. All rights reserved.