Class ApiResponse

    • Constructor Detail

      • ApiResponse

        protected ApiResponse​(ApiResponse.Builder<?,​?> builder)
        Create a new rest response.
        Parameters:
        builder - subclass of builder
    • Method Detail

      • headers

        public Headers headers()
        HTTP headers returned in the response.
        Returns:
        HTTP headers
      • status

        public Http.ResponseStatus status()
        HTTP status returned. In most cases for successful invocation, this should be one of statuses in the 200 family. In case the invocation resulted in an error, an exception is thrown instead of returning a response.
        Returns:
        status of the response (only if successful)
      • requestId

        public String requestId()
        Request ID that was used. As this ID may be generated during request, this is the only way to obtain it.
        Returns:
        request ID used when invoking the integrated system