public class PostRequest extends org.apache.http.client.methods.HttpPost implements org.apache.http.client.ResponseHandler<String>, ResponseWrapper
Constructor and Description |
---|
PostRequest(String url) |
PostRequest(URI uri) |
Modifier and Type | Method and Description |
---|---|
org.apache.http.HttpEntity |
getEntity() |
org.apache.http.HttpResponse |
getHttpResponse() |
ArrayList<org.apache.http.NameValuePair> |
getParameters() |
String |
getReasonPhrase()
Get reason phrase from response.
|
URI |
getRedirectLocation() |
String |
getResponseBodyAsString() |
org.apache.http.Header |
getResponseHeader(String name) |
int |
getStatusCode()
Get status code from response.
|
String |
handleResponse(org.apache.http.HttpResponse response) |
void |
removeParameter(String name) |
void |
setParameter(String name,
String value) |
void |
setRequestHeader(String name,
String value) |
clone, expectContinue, 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
getURI
public PostRequest(URI uri)
public PostRequest(String url)
public org.apache.http.HttpEntity getEntity()
getEntity
in interface org.apache.http.HttpEntityEnclosingRequest
getEntity
in class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
public String handleResponse(org.apache.http.HttpResponse response) throws IOException
handleResponse
in interface org.apache.http.client.ResponseHandler<String>
IOException
public void removeParameter(String name)
public ArrayList<org.apache.http.NameValuePair> getParameters()
public String getResponseBodyAsString() throws IOException
getResponseBodyAsString
in interface ResponseWrapper
IOException
public org.apache.http.Header getResponseHeader(String name)
public int getStatusCode()
getStatusCode
in interface ResponseWrapper
public String getReasonPhrase()
public URI getRedirectLocation()
public org.apache.http.HttpResponse getHttpResponse()
getHttpResponse
in interface ResponseWrapper
Copyright © 2001–2024 MickaĆ«l Guessant. All rights reserved.