Class HTTPTestUtil
Object
com.liferay.portal.kernel.test.util.HTTPTestUtil
- Author:
- Luis Miguel Barcos, Alberto Javier Moreno Lage
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intinvokeToHttpCode(String body, String endpoint, com.liferay.portal.kernel.util.Http.Method httpMethod) static InputStreaminvokeToInputStream(String body, String endpoint, com.liferay.portal.kernel.util.Http.Method httpMethod) static com.liferay.portal.kernel.json.JSONObjectinvokeToJSONObject(String body, String endpoint, com.liferay.portal.kernel.util.Http.Method httpMethod) static com.liferay.portal.kernel.json.JSONObjectinvokeToJSONObject(String body, String endpoint, Map<String, String> headers, com.liferay.portal.kernel.util.Http.Method httpMethod) static StringinvokeToString(String body, String endpoint, com.liferay.portal.kernel.util.Http.Method httpMethod) static StringinvokeToString(String body, String endpoint, Map<String, String> headers, com.liferay.portal.kernel.util.Http.Method httpMethod)
-
Constructor Details
-
HTTPTestUtil
public HTTPTestUtil()
-
-
Method Details
-
customize
-
invokeToHttpCode
public static int invokeToHttpCode(String body, String endpoint, com.liferay.portal.kernel.util.Http.Method httpMethod) throws Exception - Throws:
Exception
-
invokeToInputStream
public static InputStream invokeToInputStream(String body, String endpoint, com.liferay.portal.kernel.util.Http.Method httpMethod) throws Exception - Throws:
Exception
-
invokeToJSONObject
public static com.liferay.portal.kernel.json.JSONObject invokeToJSONObject(String body, String endpoint, com.liferay.portal.kernel.util.Http.Method httpMethod) throws Exception - Throws:
Exception
-
invokeToJSONObject
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- Throws:
Exception
-
invokeToString
public static String invokeToString(String body, String endpoint, com.liferay.portal.kernel.util.Http.Method httpMethod) throws Exception - Throws:
Exception
-
invokeToString
public static String invokeToString(String body, String endpoint, Map<String, String> headers, com.liferay.portal.kernel.util.Http.Method httpMethod) throws Exception- Throws:
Exception
-