Class Response
java.lang.Object
org.mule.weave.extension.api.component.agent.Response
The response of an agent request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.mule.weave.v2.agent.api.message.Resultboolean
-
Constructor Details
-
Response
public Response(org.mule.weave.v2.agent.api.message.Result result) -
Response
-
Response
public Response(boolean success, org.mule.weave.v2.agent.api.message.Result result, String errorStacktrace)
-
-
Method Details
-
isSuccess
public boolean isSuccess()- Returns:
- true if the request was successful, false otherwise.
-
getResult
public org.mule.weave.v2.agent.api.message.Result getResult()- Returns:
- The result of the request.
-
getErrorStacktrace
- Returns:
- The stacktrace of the error if the request failed, null otherwise.
-