com.atlassian.confluence.test.stateless.ConfluenceStatelessRestTestRunner
instead@Deprecated public class RestHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BASE_URL
Deprecated.
since 5.6 Use
BaseUrlSelector.getBaseUrl() |
static String |
PROTOTYPE_REST_PATH
Deprecated.
|
Constructor and Description |
---|
RestHelper()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
doDeleteJson(String url,
User user)
Deprecated.
|
static <T> T |
doGet(com.sun.jersey.api.client.WebResource resource,
Class<T> entityClass)
Deprecated.
|
static <T> T |
doGet(com.sun.jersey.api.client.WebResource resource,
Class<T> entityClass,
String requestType)
Deprecated.
|
static @NonNull com.sun.jersey.api.client.ClientResponse |
doGetRequest(com.sun.jersey.api.client.WebResource resource,
String requestType)
Deprecated.
|
static URI |
doPost(com.sun.jersey.api.client.WebResource resource,
Object entity)
Deprecated.
|
static <T> T |
doPut(com.sun.jersey.api.client.WebResource resource,
T entity)
Deprecated.
|
static <T> T |
doPut(com.sun.jersey.api.client.WebResource resource,
T entity,
String requestType)
Deprecated.
|
static <T> T |
doRawGet(com.sun.jersey.api.client.WebResource resource,
Class<T> entityClass)
Deprecated.
Do a get without asserting success
|
static <T> T |
doRawGet(com.sun.jersey.api.client.WebResource resource,
Class<T> entityClass,
String requestType)
Deprecated.
Do a get without asserting success, specifying the request type.
|
static com.sun.jersey.api.client.WebResource |
expand(com.sun.jersey.api.client.WebResource webResource,
String... values)
Deprecated.
|
static com.sun.jersey.api.client.WebResource |
expandWithIndexes(com.sun.jersey.api.client.WebResource webResource,
String value,
int start,
int end)
Deprecated.
|
static org.codehaus.jackson.JsonNode |
fetchJsonResponse(com.sun.jersey.api.client.WebResource resource)
Deprecated.
Send a GET request to the provided WebResource and return the response as a JSON object.
|
static com.sun.jersey.api.client.Client |
getClient()
Deprecated.
Return a jersey client configured for Jackson annotations.
|
static com.sun.jersey.api.client.Client |
getClient(@Nullable org.codehaus.jackson.map.Module jacksonModule)
Deprecated.
Returns a Client configured with the provided jackson module for custom deserialization.
|
static String |
getJsonResponseString(com.sun.jersey.api.client.WebResource resource)
Deprecated.
Send a GET request to the provided WebResource and return the response as a JSON string.
|
static String |
getPrototypeRestBaseUrl(BaseUrlSelector baseUrlSelector)
Deprecated.
|
static String |
getPrototypeRestBaseUrl(String baseUrl)
Deprecated.
|
static com.sun.jersey.api.client.Client |
newClient()
Deprecated.
Create a new Jersey client configured for Jackson annotations.
|
static com.sun.jersey.api.client.Client |
newClient(@Nullable org.codehaus.jackson.map.Module jacksonModule)
Deprecated.
Creates a new client configured with the provided jackson module for custom deserialization
|
static com.sun.jersey.api.client.WebResource.Builder |
newJsonResource(String url,
User user)
Deprecated.
Returns a new web resource accepting JSON, with OS credentials for the passed user.
|
static @NonNull com.sun.jersey.api.client.WebResource |
newResource(@Nullable String url,
@Nullable User user)
Deprecated.
Returns a new web resource with OS credentials for the passed user.
|
static com.sun.jersey.api.client.WebResource |
newResource(User user)
Deprecated.
since 5.6 Use
newResource(String, User) |
static org.codehaus.jackson.JsonNode |
postJson(String url,
String jsonPayload,
User user)
Deprecated.
|
static void |
postJsonWithNoResponse(String url,
String jsonPayload,
User user)
Deprecated.
|
@Deprecated public static final String BASE_URL
BaseUrlSelector.getBaseUrl()
public static final String PROTOTYPE_REST_PATH
@Deprecated public static com.sun.jersey.api.client.WebResource newResource(User user)
newResource(String, User)
public static com.sun.jersey.api.client.Client newClient()
public static com.sun.jersey.api.client.Client newClient(@Nullable org.codehaus.jackson.map.Module jacksonModule)
public static com.sun.jersey.api.client.Client getClient(@Nullable org.codehaus.jackson.map.Module jacksonModule)
public static com.sun.jersey.api.client.Client getClient()
public static @NonNull com.sun.jersey.api.client.WebResource newResource(@Nullable String url, @Nullable User user)
public static com.sun.jersey.api.client.WebResource.Builder newJsonResource(String url, User user)
public static org.codehaus.jackson.JsonNode fetchJsonResponse(com.sun.jersey.api.client.WebResource resource)
public static String getJsonResponseString(com.sun.jersey.api.client.WebResource resource)
public static org.codehaus.jackson.JsonNode postJson(String url, String jsonPayload, User user) throws IOException
IOException
public static void postJsonWithNoResponse(String url, String jsonPayload, User user)
public static <T> T doGet(com.sun.jersey.api.client.WebResource resource, Class<T> entityClass)
public static <T> T doGet(com.sun.jersey.api.client.WebResource resource, Class<T> entityClass, String requestType)
public static String getPrototypeRestBaseUrl(BaseUrlSelector baseUrlSelector)
public static <T> T doRawGet(com.sun.jersey.api.client.WebResource resource, Class<T> entityClass)
public static <T> T doRawGet(com.sun.jersey.api.client.WebResource resource, Class<T> entityClass, String requestType)
public static @NonNull com.sun.jersey.api.client.ClientResponse doGetRequest(com.sun.jersey.api.client.WebResource resource, String requestType)
public static <T> T doPut(com.sun.jersey.api.client.WebResource resource, T entity)
public static <T> T doPut(com.sun.jersey.api.client.WebResource resource, T entity, String requestType)
public static URI doPost(com.sun.jersey.api.client.WebResource resource, Object entity)
public static com.sun.jersey.api.client.WebResource expand(com.sun.jersey.api.client.WebResource webResource, String... values)
public static com.sun.jersey.api.client.WebResource expandWithIndexes(com.sun.jersey.api.client.WebResource webResource, String value, int start, int end)
Copyright © 2003–2019 Atlassian. All rights reserved.