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, setEntity
getConfig, getProtocolVersion, getRequestLine, getURI, releaseConnection, setConfig, setProtocolVersion, setURI, started, toString
abort, completed, isAborted, reset, setCancellable, setConnectionRequest, setReleaseTrigger
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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>
IOException
Copyright © 2001–2024 MickaĆ«l Guessant. All rights reserved.