T
- the type of the resource within this response.public class ApiResponse<T>
extends java.lang.Object
Base class for API responses.
Constructor and Description |
---|
ApiResponse(T resource,
int statusCode,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.Multimap<java.lang.String,java.lang.String> |
getHeaders() |
T |
getResource() |
int |
getStatusCode() |
public ApiResponse(T resource, int statusCode, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
public T getResource()
public int getStatusCode()
public com.google.common.collect.Multimap<java.lang.String,java.lang.String> getHeaders()