Class TryOutHandler
java.lang.Object
org.eclipse.lemminx.customservice.synapse.mediator.tryout.TryOutHandler
-
Constructor Summary
ConstructorsConstructorDescriptionTryOutHandler(String projectUri, String miServerPath, SynapseLanguageClientAPI languageClient) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(MediatorTryoutRequest request) Executes the artifact that the mediator belongs to and returns the input and output info of the mediator.handleIsolatedTryOut(String projectPath, MediatorTryoutRequest request, boolean useSameCAPP, Properties context) Execute a single mediator in isolation to get the input and output info.voidinit()protected voidreset()sendCommand(com.google.gson.JsonObject command) voidsendRequest(String url, String methodType, String contentType, String inputPayload) booleanshutDown()
-
Constructor Details
-
TryOutHandler
public TryOutHandler(String projectUri, String miServerPath, SynapseLanguageClientAPI languageClient)
-
-
Method Details
-
init
public void init() -
handle
Executes the artifact that the mediator belongs to and returns the input and output info of the mediator.- Parameters:
request-- Returns:
- Throws:
InterruptedException
-
handleIsolatedTryOut
public MediatorTryoutInfo handleIsolatedTryOut(String projectPath, MediatorTryoutRequest request, boolean useSameCAPP, Properties context) Execute a single mediator in isolation to get the input and output info.- Parameters:
projectPath-request-- Returns:
-
clearBreakpoints
public void clearBreakpoints() -
sendCommand
-
sendRequest
public void sendRequest(String url, String methodType, String contentType, String inputPayload) throws InvalidConfigurationException - Throws:
InvalidConfigurationException
-
reset
protected void reset() -
shutDown
public boolean shutDown()
-