Class Result

java.lang.Object
org.eclipse.jetty.client.api.Result

public class Result extends Object
The result of a request / response exchange, containing the Request, the Response and eventual failures of either.
  • Constructor Details

  • Method Details

    • getRequest

      public Request getRequest()
      Returns:
      the request object
    • getRequestFailure

      public Throwable getRequestFailure()
      Returns:
      the request failure, if any
    • getResponse

      public Response getResponse()
      Returns:
      the response object
    • getResponseFailure

      public Throwable getResponseFailure()
      Returns:
      the response failure, if any
    • isSucceeded

      public boolean isSucceeded()
      Returns:
      whether both the request and the response succeeded
    • isFailed

      public boolean isFailed()
      Returns:
      whether either the response or the request failed
    • getFailure

      public Throwable getFailure()
      Returns:
      the response failure, if any, otherwise the request failure, if any
    • toString

      public String toString()
      Overrides:
      toString in class Object