public class Validate extends Object
| Constructor and Description |
|---|
Validate() |
| Modifier and Type | Method and Description |
|---|---|
static void |
extractResources(String projectName,
String serviceName)
Extract resource artifacts from the jar file
|
static String |
validateRequest(String requestPath,
String reqMethod,
String payload,
String serviceName)
Validate request message.
|
static String |
validateResponse(String resourcePath,
String reqMethod,
String responseCode,
String response,
String serviceName)
Validate response message.
|
public static String validateRequest(String requestPath, String reqMethod, String payload, String serviceName) throws IOException
requestPath - API request resource pathreqMethod - API request methodpayload - Request payloadIOExceptionpublic static String validateResponse(String resourcePath, String reqMethod, String responseCode, String response, String serviceName)
resourcePath - request resource pathreqMethod - request methodresponseCode - response message coderesponse - response payloadpublic static void extractResources(String projectName, String serviceName) throws IOException
projectName - project name.serviceName - ballerina service nameIOExceptionCopyright © 2021 WSO2. All rights reserved.