com.atlassian.bamboo.rest.util
Class Post

java.lang.Object
  extended by com.atlassian.bamboo.rest.util.RESTCall<org.apache.commons.httpclient.methods.PostMethod>
      extended by com.atlassian.bamboo.rest.util.Post

public class Post
extends RESTCall<org.apache.commons.httpclient.methods.PostMethod>

Author:
Erik van Zijst

Constructor Summary
Post(org.apache.commons.httpclient.HttpClient client, java.lang.String url)
           
Post(java.lang.String url)
           
 
Method Summary
 void addParam(java.lang.String name, java.lang.String value)
           
 void setMultipartRequest(org.apache.commons.httpclient.methods.multipart.Part... parts)
           
 void setRequestBody(byte[] raw, java.lang.String contentType)
          Sets the request body to the specified raw byte array.
 void setRequestEntity(org.apache.commons.httpclient.methods.RequestEntity requestEntity)
           
 void setRequestObject(java.lang.Object obj)
           
 
Methods inherited from class com.atlassian.bamboo.rest.util.RESTCall
addRequestHeader, assertExecuted, assertNotExecuted, execute, getMethod, getResponseAsStream, getResponseBody, 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

Post

public Post(@NotNull
            org.apache.commons.httpclient.HttpClient client,
            @NotNull
            java.lang.String url)

Post

public Post(@NotNull
            java.lang.String url)
Method Detail

setMultipartRequest

public void setMultipartRequest(org.apache.commons.httpclient.methods.multipart.Part... parts)

setRequestBody

public void setRequestBody(byte[] raw,
                           java.lang.String contentType)
Sets the request body to the specified raw byte array.

Parameters:
raw -
contentType -

setRequestObject

public void setRequestObject(java.lang.Object obj)
                      throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

setRequestEntity

public void setRequestEntity(org.apache.commons.httpclient.methods.RequestEntity requestEntity)

addParam

public void addParam(java.lang.String name,
                     java.lang.String value)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.