Package com.inrupt.client
Interface Response.BodyHandler<T>
-
- Type Parameters:
T
- the body type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface Response.BodyHandler<T>
An interface for mapping an HTTP response into a specific Java type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
apply(Response.ResponseInfo response)
Transform the response into the desired Java type.
-
-
-
Method Detail
-
apply
T apply(Response.ResponseInfo response)
Transform the response into the desired Java type.- Parameters:
response
- the initial response information- Returns:
- the response body
-
-