Class Result


  • @Deprecated(since="2021-05-27")
    public class Result
    extends java.lang.Object
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    The result of a request / response exchange, containing the Request, the Response and eventual failures of either.
    • Constructor Detail

      • Result

        public Result​(Request request,
                      Response response)
        Deprecated.
      • Result

        public Result​(Request request,
                      Response response,
                      java.lang.Throwable responseFailure)
        Deprecated.
      • Result

        public Result​(Request request,
                      java.lang.Throwable requestFailure,
                      Response response)
        Deprecated.
      • Result

        public Result​(Request request,
                      java.lang.Throwable requestFailure,
                      Response response,
                      java.lang.Throwable responseFailure)
        Deprecated.
      • Result

        public Result​(Result result,
                      java.lang.Throwable responseFailure)
        Deprecated.
    • Method Detail

      • getRequest

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

        public java.lang.Throwable getRequestFailure()
        Deprecated.
        Returns:
        the request failure, if any
      • getResponse

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

        public java.lang.Throwable getResponseFailure()
        Deprecated.
        Returns:
        the response failure, if any
      • isSucceeded

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

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

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

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object