public class Post extends RESTCall<org.apache.http.client.methods.HttpPost>
| Constructor and Description |
|---|
Post(org.apache.http.client.HttpClient client,
String url) |
Post(String url) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParam(String name,
String value) |
protected void |
beforeExecute() |
void |
setRequestBody(byte[] raw,
org.apache.http.entity.ContentType contentType)
Sets the request body to the specified raw byte array.
|
void |
setRequestBody(byte[] raw,
String contentType)
Deprecated.
since 6.0 use
setRequestBody(byte[], ContentType) instead |
void |
setRequestEntity(org.apache.http.HttpEntity requestEntity) |
void |
setRequestObject(Object obj) |
addRequestHeader, assertExecuted, assertNotExecuted, close, execute, getHttpClientWithTimeout, getMethod, getResponseAsStream, getResponseAsString, getResponseBody, getResponseHeaders, getStatusCode, getStatusLine, getURI, marshal, release, setBasicCredentials, setClientProxy, setMarshalledClasses, toString, unmarshal, unmarshalpublic Post(@NotNull
org.apache.http.client.HttpClient client,
@NotNull
String url)
public Post(@NotNull
String url)
@Deprecated public void setRequestBody(byte[] raw, String contentType)
setRequestBody(byte[], ContentType) insteadraw - contentType - public void setRequestBody(byte[] raw,
org.apache.http.entity.ContentType contentType)
raw - contentType - public void setRequestObject(Object obj) throws JAXBException
JAXBExceptionpublic void setRequestEntity(org.apache.http.HttpEntity requestEntity)
protected void beforeExecute()
beforeExecute in class RESTCall<org.apache.http.client.methods.HttpPost>Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.