com.atlassian.bamboo.rest.util
Class Post

java.lang.Object
  extended by com.atlassian.bamboo.rest.util.RESTCall
      extended by com.atlassian.bamboo.rest.util.Post

public class Post
extends RESTCall

Author:
Erik van Zijst

Constructor Summary
Post(java.lang.String url)
           
 
Method Summary
protected  java.lang.String getAction()
          Returns the HTTP action (POST/GET/HEAD/etc)
 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 setRequestObject(java.lang.Object obj)
           
 
Methods inherited from class com.atlassian.bamboo.rest.util.RESTCall
addRequestHeader, assertExecuted, assertNotExecuted, execute, 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(java.lang.String url)
Method Detail

getAction

protected java.lang.String getAction()
Description copied from class: RESTCall
Returns the HTTP action (POST/GET/HEAD/etc)

Specified by:
getAction in class RESTCall
Returns:

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


Copyright © 2012 Atlassian. All Rights Reserved.