Package com.atlassian.bamboo.rest.utils
Class Put
java.lang.Object
com.atlassian.bamboo.rest.utils.RESTCall<org.apache.http.client.methods.HttpPut>
com.atlassian.bamboo.rest.utils.Put
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setRequestBody
(byte[] raw, String contentType) Deprecated.void
setRequestBody
(byte[] raw, org.apache.http.entity.ContentType contentType) Sets the request body to the specified raw byte array.void
setRequestEntity
(org.apache.http.HttpEntity requestEntity) void
setRequestObject
(Object obj) Methods inherited from class com.atlassian.bamboo.rest.utils.RESTCall
addRequestHeader, assertExecuted, assertNotExecuted, beforeExecute, close, execute, getHttpClientWithTimeout, getMethod, getResponseAsStream, getResponseAsString, getResponseBody, getResponseHeaders, getStatusCode, getStatusLine, getURI, marshal, release, setBasicCredentials, setMarshalledClasses, toString, unmarshal, unmarshal
-
Constructor Details
-
Put
public Put(@NotNull @NotNull org.apache.http.client.HttpClient client, @NotNull @NotNull String url) -
Put
-
-
Method Details
-
setRequestBody
Deprecated.since 9.0 usesetRequestBody(byte[], ContentType)
insteadSets the request body to the specified raw byte array.- Parameters:
raw
-contentType
-
-
setRequestBody
public void setRequestBody(byte[] raw, org.apache.http.entity.ContentType contentType) Sets the request body to the specified raw byte array.- Parameters:
raw
-contentType
-
-
setRequestEntity
public void setRequestEntity(org.apache.http.HttpEntity requestEntity) -
setRequestObject
- Throws:
javax.xml.bind.JAXBException
-
setRequestBody(byte[], ContentType)
instead