com.atlassian.confluence.it
Class RestHelper
java.lang.Object
com.atlassian.confluence.it.RestHelper
public class RestHelper
- extends Object
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 |
RestHelper
public RestHelper()
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.