Class Put

  • All Implemented Interfaces:
    AutoCloseable

    public class Put
    extends RESTCall<org.apache.http.client.methods.HttpPut>
    • Constructor Detail

      • Put

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

        public Put​(@NotNull
                   @NotNull String url)
    • Method Detail

      • 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