Package com.inrupt.client
Interface Response<T>
- Type Parameters:
T- the type of the response body
public interface Response<T>
An HTTP Response.
This interface provides a generic API for interacting with HTTP responses.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAn interface for mapping an HTTP response into a specific Java type.static final classConvenience methods for creating commonResponse.BodyHandlerobjects.static interfaceInitial response info supplied to aResponse.BodyHandlerbefore the body is processed. -
Method Summary
-
Method Details
-
body
T body()The body of the HTTP response.- Returns:
- the response body
-
headers
Headers headers()The headers from this HTTP response.- Returns:
- the response headers
-
uri
URI uri()The URI from which the response was received.- Returns:
- the response URI
-
statusCode
int statusCode()The status code of an HTTP response.- Returns:
- the response code
-