Interface ResourceResponse<T>

  • Type Parameters:
    T - the type of response to extract from the request execution.

    public interface ResourceResponse<T>
    A response obtained from a ResourceRequest execution.

    Due to the contract of the ResourceRequest interface, this response is instantiated only when the HTTP response status is 20x .

    Since:
    1.1.0
    • Method Detail

      • getEntity

        T getEntity()
        Returns the entity extracted from the response.
        Returns:
        the entity extracted from the response.
      • getETag

        String getETag()
        Returns the ETag header from the response, if any.
        Returns:
        the ETag header from the response, if any.
      • getHeaders

        MultivaluedMap<String,​String> getHeaders()
        Returns the headers of the response.
        Returns:
        the headers of the response.