public class RestUtil extends Object
| Constructor and Description |
|---|
RestUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T,G> T |
delete(URL deploymentUrl,
String relativeUrl,
String mediaType,
int status,
String user,
String password,
Class... responseTypes) |
static <T,G> T |
get(URL deploymentUrl,
String relativeUrl,
String mediaType,
int status,
String user,
String password,
Class... responseTypes) |
static <T,G> T |
getQuery(URL deploymentUrl,
String relativeUrl,
String mediaType,
int status,
String user,
String password,
Map<String,String> queryParams,
Class... responseTypes) |
static void |
logAndFail(String msg,
Exception e) |
static <T> T |
post(URL deploymentUrl,
String relativeUrl,
String mediaType,
int status,
String user,
String password,
Class<T>... responseTypes) |
static <T> T |
post(URL deploymentUrl,
String relativeUrl,
String mediaType,
int status,
String user,
String password,
double timeoutInSecs,
Class<T>... responseTypes) |
static <T> T |
postEntity(URL deploymentUrl,
String relativeUrl,
int status,
String user,
String password,
Class[] classes,
Object entity,
Class<T>... responseTypes) |
static <T> T |
postEntity(URL deploymentUrl,
String relativeUrl,
String mediaType,
int status,
String user,
String password,
double timeoutInSecs,
Object entity,
Class<T>... responseTypes) |
static <T> T |
postEntity(URL deploymentUrl,
String relativeUrl,
String mediaType,
int status,
String user,
String password,
Object entity,
Class<T>... responseTypes) |
static <T> T |
postForm(URL deploymentUrl,
String relativeUrl,
String mediaType,
int status,
String user,
String password,
Map<String,String> formParams,
Class<T>... responseTypes) |
public static <T,G> T get(URL deploymentUrl, String relativeUrl, String mediaType, int status, String user, String password, Class... responseTypes)
public static <T,G> T getQuery(URL deploymentUrl, String relativeUrl, String mediaType, int status, String user, String password, Map<String,String> queryParams, Class... responseTypes)
public static <T> T postEntity(URL deploymentUrl, String relativeUrl, int status, String user, String password, Class[] classes, Object entity, Class<T>... responseTypes)
public static <T> T postEntity(URL deploymentUrl, String relativeUrl, String mediaType, int status, String user, String password, Object entity, Class<T>... responseTypes)
public static <T> T postEntity(URL deploymentUrl, String relativeUrl, String mediaType, int status, String user, String password, double timeoutInSecs, Object entity, Class<T>... responseTypes)
public static <T> T post(URL deploymentUrl, String relativeUrl, String mediaType, int status, String user, String password, double timeoutInSecs, Class<T>... responseTypes)
public static <T> T post(URL deploymentUrl, String relativeUrl, String mediaType, int status, String user, String password, Class<T>... responseTypes)
public static <T> T postForm(URL deploymentUrl, String relativeUrl, String mediaType, int status, String user, String password, Map<String,String> formParams, Class<T>... responseTypes)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.