Package com.oracle.bmc.http.internal
Class WithHeaders<T>
- java.lang.Object
-
- com.oracle.bmc.http.internal.WithHeaders<T>
-
- Type Parameters:
T- The type of element returned.
public class WithHeaders<T> extends Object
Represents a result with HTTP headers
-
-
Constructor Summary
Constructors Constructor Description WithHeaders(T item, javax.ws.rs.core.MultivaluedMap<String,String> headers, int statusCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.MultivaluedMap<String,String>getHeaders()The HTTP response headers.TgetItem()The item returned from the call, null if the returned code is 304 (not-modified).intgetStatusCode()The HTTP status code returned.
-
-
-
Method Detail
-
getItem
@Nullable public T getItem()
The item returned from the call, null if the returned code is 304 (not-modified).
-
getHeaders
@Nonnull public javax.ws.rs.core.MultivaluedMap<String,String> getHeaders()
The HTTP response headers.
-
getStatusCode
public int getStatusCode()
The HTTP status code returned.
-
-