java.lang.Object
org.mule.weave.extension.api.component.agent.Response

public class Response extends Object
The response of an agent request.
  • Constructor Details

    • Response

      public Response(org.mule.weave.v2.agent.api.message.Result result)
    • Response

      public Response(String errorStacktrace)
    • 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

      public String getErrorStacktrace()
      Returns:
      The stacktrace of the error if the request failed, null otherwise.