T - The type of the result.public final class TrivialResponseHandler<T>
extends java.lang.Object
implements org.dmfs.httpessentials.client.HttpResponseHandler<T>
HttpResponseHandler that always return the same response. It ensures that the actual response is properly closed.| Constructor and Description |
|---|
TrivialResponseHandler(T result)
Creates a
TrivialResponseHandler that returns the given result. |
| Modifier and Type | Method and Description |
|---|---|
T |
handleResponse(org.dmfs.httpessentials.client.HttpResponse response) |
public TrivialResponseHandler(T result)
TrivialResponseHandler that returns the given result.