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
public class Put extends RESTCall<org.apache.http.client.methods.HttpPut>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
setRequestBody(byte[] raw, String contentType)
Deprecated.since 9.0 usesetRequestBody(byte[], ContentType)
insteadvoid
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
-
-
-
-
Method Detail
-
setRequestBody
@Deprecated public void setRequestBody(byte[] raw, String contentType)
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
public void setRequestObject(Object obj) throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
-
-