com.atlassian.bamboo.rest.utils
Class Put

java.lang.Object
  extended by com.atlassian.bamboo.rest.utils.RESTCall<org.apache.http.client.methods.HttpPut>
      extended by 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)
           
 
Method Summary
 void setRequestBody(byte[] raw, String contentType)
          Sets the request body to the specified raw byte array.
 void setRequestObject(Object obj)
           
 
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
 

Constructor Detail

Put

public Put(@NotNull
           org.apache.http.client.HttpClient client,
           @NotNull
           String url)

Put

public Put(@NotNull
           String url)
Method Detail

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.