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>
  • Constructor Details

    • Put

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

      public Put(@NotNull @NotNull String url)
  • Method Details

    • setRequestBody

      @Deprecated public void setRequestBody(byte[] raw, String contentType)
      Deprecated.
      Sets 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