T - The type of element returned.public class WithHeaders<T> extends Object
Represents a result with HTTP headers
| Constructor and Description |
|---|
WithHeaders(T item,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
int statusCode) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.MultivaluedMap<String,String> |
getHeaders()
The HTTP response headers.
|
T |
getItem()
The item returned from the call, null if the returned code is 304 (not-modified).
|
int |
getStatusCode()
The HTTP status code returned.
|
@Nullable public T getItem()
The item returned from the call, null if the returned code is 304 (not-modified).
@Nonnull public javax.ws.rs.core.MultivaluedMap<String,String> getHeaders()
The HTTP response headers.
public int getStatusCode()
The HTTP status code returned.
Copyright © 2016–2022. All rights reserved.