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
public class Put
- extends RESTCall<org.apache.http.client.methods.HttpPut>
Constructor Summary |
Put(org.apache.http.client.HttpClient client,
String url)
|
Put(String url)
|
Methods inherited from class com.atlassian.bamboo.rest.utils.RESTCall |
addRequestHeader, assertExecuted, assertNotExecuted, beforeExecute, execute, getMethod, getResponseAsStream, getResponseBody, getResponseHeaders, getStatusCode, getURI, marshal, release, setBasicCredentials, setClientProxy, setMarshalledClasses, unmarshal, unmarshal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Put
public Put(@NotNull
org.apache.http.client.HttpClient client,
@NotNull
String url)
Put
public Put(@NotNull
String url)
setRequestBody
public void setRequestBody(byte[] raw,
String contentType)
- Sets the request body to the specified raw byte array.
- Parameters:
raw
- contentType
-
setRequestObject
public void setRequestObject(Object obj)
throws JAXBException
- Throws:
JAXBException
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.