com.atlassian.confluence.it
Class RestHelper

java.lang.Object
  extended by com.atlassian.confluence.it.RestHelper

public class RestHelper
extends Object


Constructor Summary
RestHelper()
           
 
Method Summary
 com.sun.jersey.api.client.WebResource addUserCredentials(com.sun.jersey.api.client.WebResource resource, User user)
           
 com.sun.jersey.api.client.ClientResponse doJsonPost(com.sun.jersey.api.client.WebResource resource, Map map)
          The "correct" call for a REST POST, that will never be used.
 JSONObject doJsonPostWithOk(com.sun.jersey.api.client.WebResource resource, Map map)
          Posts a JSON and receives a JSON response, laughing in the face of correct REST usage.
 com.sun.jersey.api.client.WebResource getNewWebResource(String url)
           
 JSONObject getResponse(com.sun.jersey.api.client.WebResource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestHelper

public RestHelper()
Method Detail

getNewWebResource

public com.sun.jersey.api.client.WebResource getNewWebResource(String url)

getResponse

public JSONObject getResponse(com.sun.jersey.api.client.WebResource resource)
                       throws JSONException
Throws:
JSONException

doJsonPostWithOk

public JSONObject doJsonPostWithOk(com.sun.jersey.api.client.WebResource resource,
                                   Map map)
                            throws JSONException
Posts a JSON and receives a JSON response, laughing in the face of correct REST usage.

Throws:
JSONException

doJsonPost

public com.sun.jersey.api.client.ClientResponse doJsonPost(com.sun.jersey.api.client.WebResource resource,
                                                           Map map)
The "correct" call for a REST POST, that will never be used. It is here for completionists.


addUserCredentials

public com.sun.jersey.api.client.WebResource addUserCredentials(com.sun.jersey.api.client.WebResource resource,
                                                                User user)


Copyright © 2003-2012 Atlassian. All Rights Reserved.