public class HTTPTestUtil
extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HTTPTestUtil.HTTPTestUtilCustomizer |
Constructor and Description |
---|
HTTPTestUtil() |
Modifier and Type | Method and Description |
---|---|
static HTTPTestUtil.HTTPTestUtilCustomizer |
customize() |
static int |
invokeToHttpCode(String body,
String endpoint,
com.liferay.portal.kernel.util.Http.Method httpMethod) |
static com.liferay.portal.kernel.json.JSONObject |
invokeToJSONObject(String body,
String endpoint,
com.liferay.portal.kernel.util.Http.Method httpMethod) |
static com.liferay.portal.kernel.json.JSONObject |
invokeToJSONObject(String body,
String endpoint,
Map<String,String> headers,
com.liferay.portal.kernel.util.Http.Method httpMethod) |
static String |
invokeToString(String body,
String endpoint,
com.liferay.portal.kernel.util.Http.Method httpMethod) |
static String |
invokeToString(String body,
String endpoint,
Map<String,String> headers,
com.liferay.portal.kernel.util.Http.Method httpMethod) |
public static HTTPTestUtil.HTTPTestUtilCustomizer customize()
public static int invokeToHttpCode(String body, String endpoint, com.liferay.portal.kernel.util.Http.Method httpMethod) throws Exception
Exception
public static com.liferay.portal.kernel.json.JSONObject invokeToJSONObject(String body, String endpoint, com.liferay.portal.kernel.util.Http.Method httpMethod) throws Exception
Exception
public static com.liferay.portal.kernel.json.JSONObject invokeToJSONObject(String body, String endpoint, Map<String,String> headers, com.liferay.portal.kernel.util.Http.Method httpMethod) throws Exception
Exception
public static String invokeToString(String body, String endpoint, com.liferay.portal.kernel.util.Http.Method httpMethod) throws Exception
Exception
public static String invokeToString(String body, String endpoint, Map<String,String> headers, com.liferay.portal.kernel.util.Http.Method httpMethod) throws Exception
Exception