public class RestRequest
extends org.apache.http.client.methods.HttpPost
implements org.apache.http.client.ResponseHandler<org.codehaus.jettison.json.JSONObject>
| Constructor and Description | 
|---|
RestRequest(String uri)  | 
RestRequest(String uri,
           org.apache.http.HttpEntity entity)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected byte[] | 
getJsonContent()  | 
org.codehaus.jettison.json.JSONObject | 
handleResponse(org.apache.http.HttpResponse response)  | 
void | 
setJsonBody(org.codehaus.jettison.json.JSONObject jsonBody)  | 
void | 
setRequestHeader(String name,
                String value)  | 
clone, expectContinue, getEntity, setEntitygetConfig, getProtocolVersion, getRequestLine, getURI, releaseConnection, setConfig, setProtocolVersion, setURI, started, toStringabort, completed, isAborted, reset, setCancellable, setConnectionRequest, setReleaseTriggeraddHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic RestRequest(String uri)
public RestRequest(String uri, org.apache.http.HttpEntity entity)
protected byte[] getJsonContent()
public void setJsonBody(org.codehaus.jettison.json.JSONObject jsonBody)
public org.codehaus.jettison.json.JSONObject handleResponse(org.apache.http.HttpResponse response)
                                                     throws IOException
handleResponse in interface org.apache.http.client.ResponseHandler<org.codehaus.jettison.json.JSONObject>IOExceptionCopyright © 2001–2025 MickaĆ«l Guessant. All rights reserved.