| Modifier and Type | Class and Description |
|---|---|
class |
OCID
Oracle Cloud Infrastructure unique ID.
|
interface |
Service
Interface representing a service definition.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractFederationClientAuthenticationDetailsProviderBuilder<B extends AbstractFederationClientAuthenticationDetailsProviderBuilder<B,P>,P extends AbstractAuthenticationDetailsProvider>
Abstract builder base class for authentication details provider extending
AbstractRequestingAuthenticationDetailsProvider |
class |
AbstractRequestingAuthenticationDetailsProvider
Base class for authentication details providers that make remote requests.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
AuthUtils.toByteArrayFromRSAPrivateKey(RSAPrivateKey key)
Converts a private key back to a PEM formatted input stream.
|
| Modifier and Type | Method and Description |
|---|---|
B |
ClientBuilderBase.restClientFactoryBuilder(RestClientFactoryBuilder restClientFactoryBuilder)
Set the builder for the
RestClientFactory. |
| Modifier and Type | Method and Description |
|---|---|
<T extends BmcRequest> |
RestClient.delete(WrappedInvocationBuilder ib,
T request)
Execute a delete on a resource and get the response.
|
<T extends BmcRequest> |
RestClient.delete(WrappedInvocationBuilder ib,
T request,
Consumer<javax.ws.rs.core.Response> onSuccess,
Consumer<Throwable> onError)
Execute a delete on a resource asynchronously and get the response.
|
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.deleteFutureSupplier(REQUEST interceptedRequest,
WrappedInvocationBuilder ib,
Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Return the function that, given an
AsyncHandler, makes the delete request and returns the future. |
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.deleteFutureSupplier(REQUEST interceptedRequest,
WrappedInvocationBuilder ib,
com.google.common.base.Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Deprecated.
use the method without Guava parameters instead
|
static com.google.common.base.Optional<List<String>> |
HeaderUtils.get(javax.ws.rs.core.MultivaluedMap<String,String> headers,
String name)
Returns the header values for the given header key.
|
<T extends BmcRequest> |
RestClient.get(WrappedInvocationBuilder ib,
T request)
Request a resource.
|
<T extends BmcRequest> |
RestClient.get(WrappedInvocationBuilder ib,
T request,
Consumer<javax.ws.rs.core.Response> onSuccess,
Consumer<Throwable> onError)
Request a resource asynchronously.
|
protected List<ClientConfigurator> |
RestClientFactoryBuilder.getAdditionalClientConfigurators() |
protected ClientConfigurator |
RestClientFactoryBuilder.getClientConfigurator() |
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.getFutureSupplier(REQUEST interceptedRequest,
WrappedInvocationBuilder ib,
Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Return the function that, given an
AsyncHandler, makes the get request and returns the future. |
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.getFutureSupplier(REQUEST interceptedRequest,
WrappedInvocationBuilder ib,
com.google.common.base.Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Deprecated.
Use the method without Guava parameters instead
|
static Optional<List<String>> |
HeaderUtils.getHeadersWithName(javax.ws.rs.core.MultivaluedMap<String,String> headers,
String name)
Returns the header values for the given header key.
|
<T extends BmcRequest> |
RestClient.head(WrappedInvocationBuilder ib,
T request)
Execute a head request for a resource and return the response.
|
<T extends BmcRequest> |
RestClient.head(WrappedInvocationBuilder ib,
T request,
Consumer<javax.ws.rs.core.Response> onSuccess,
Consumer<Throwable> onError)
Execute a head request for a resource asynchronously and return the
response.
|
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.headFutureSupplier(REQUEST interceptedRequest,
WrappedInvocationBuilder ib,
Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Return the function that, given an
AsyncHandler, makes the head request and returns the future. |
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.headFutureSupplier(REQUEST interceptedRequest,
WrappedInvocationBuilder ib,
com.google.common.base.Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Deprecated.
use method without Guava parameters instead
|
<T extends BmcRequest> |
RestClient.patch(WrappedInvocationBuilder ib,
Object body,
T request)
Patch a request object to the endpoint represented by the web target and
get the response.
|
<T extends BmcRequest> |
RestClient.patch(WrappedInvocationBuilder ib,
Object body,
T request,
Consumer<javax.ws.rs.core.Response> onSuccess,
Consumer<Throwable> onError)
Patch a request object to the endpoint represented by the web target
asynchronously and get the response.
|
<T extends BmcRequest> |
RestClient.patch(WrappedInvocationBuilder ib,
T request)
Patch a request object without body to the endpoint represented by the web target and
get the response.
|
<T extends BmcRequest> |
RestClient.patch(WrappedInvocationBuilder ib,
T request,
Consumer<javax.ws.rs.core.Response> onSuccess,
Consumer<Throwable> onError)
Patch a request object without body to the endpoint represented by the web target
asynchronously and get the response.
|
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.patchFutureSupplier(REQUEST interceptedRequest,
Object body,
WrappedInvocationBuilder ib,
Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Return the function that, given an
AsyncHandler, makes the patch request and returns the future |
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.patchFutureSupplier(REQUEST interceptedRequest,
Object body,
WrappedInvocationBuilder ib,
com.google.common.base.Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Deprecated.
use method without Guava parameters instead
|
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.patchFutureSupplier(REQUEST interceptedRequest,
WrappedInvocationBuilder ib,
Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Return the function that, given an
AsyncHandler, makes the patch request and returns the future |
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.patchFutureSupplier(REQUEST interceptedRequest,
WrappedInvocationBuilder ib,
com.google.common.base.Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Deprecated.
use method without Guava parameters instead
|
<T extends BmcRequest> |
RestClient.post(WrappedInvocationBuilder ib,
Object body,
T request)
Post a request object to the endpoint represented by the web target and
get the response.
|
<T extends BmcRequest> |
RestClient.post(WrappedInvocationBuilder ib,
Object body,
T request,
Consumer<javax.ws.rs.core.Response> onSuccess,
Consumer<Throwable> onError)
Post a request object to the endpoint represented by the web target
asynchronously and get the response.
|
<T extends BmcRequest> |
RestClient.post(WrappedInvocationBuilder ib,
T request)
Post an empty body to the endpoint represented by the web target and get
the response.
|
<T extends BmcRequest> |
RestClient.post(WrappedInvocationBuilder ib,
T request,
Consumer<javax.ws.rs.core.Response> onSuccess,
Consumer<Throwable> onError)
Post an empty body to the endpoint represented by the web target
asynchronously and get the response.
|
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.postFutureSupplier(REQUEST interceptedRequest,
Object body,
WrappedInvocationBuilder ib,
Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Return the function that, given an
AsyncHandler, makes the post request and returns
the future |
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.postFutureSupplier(REQUEST interceptedRequest,
Object body,
WrappedInvocationBuilder ib,
com.google.common.base.Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Deprecated.
use the method without Guava parameters instead
|
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.postFutureSupplier(REQUEST interceptedRequest,
WrappedInvocationBuilder ib,
Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Return the function that, given an
AsyncHandler, makes the post request and returns the future |
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.postFutureSupplier(REQUEST interceptedRequest,
WrappedInvocationBuilder ib,
com.google.common.base.Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Deprecated.
use method without GUava parameters instead
|
<T extends BmcRequest> |
RestClient.put(WrappedInvocationBuilder ib,
Object body,
T request)
Put a request object to the endpoint represented by the web target and
get the response.
|
<T extends BmcRequest> |
RestClient.put(WrappedInvocationBuilder ib,
Object body,
T request,
Consumer<javax.ws.rs.core.Response> onSuccess,
Consumer<Throwable> onError)
Put a request object to the endpoint represented by the web target
asynchronously and get the response.
|
<T extends BmcRequest> |
RestClient.put(WrappedInvocationBuilder ib,
T request)
Put a request object without body to the endpoint represented by the web target and
get the response.
|
<T extends BmcRequest> |
RestClient.put(WrappedInvocationBuilder ib,
T request,
Consumer<javax.ws.rs.core.Response> onSuccess,
Consumer<Throwable> onError)
Put a request object without body to the endpoint represented by the web target
asynchronously and get the response.
|
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.putFutureSupplier(REQUEST interceptedRequest,
Object body,
WrappedInvocationBuilder ib,
Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Return the function that, given an
AsyncHandler, makes the put request and returns the future |
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.putFutureSupplier(REQUEST interceptedRequest,
Object body,
WrappedInvocationBuilder ib,
com.google.common.base.Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Deprecated.
use the method without Guava parameters instead
|
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.putFutureSupplier(REQUEST interceptedRequest,
WrappedInvocationBuilder ib,
Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Return the function that, given an
AsyncHandler, makes the put request and returns the future |
<B,REQUEST extends BmcRequest<B>,RESPONSE> |
RestClient.putFutureSupplier(REQUEST interceptedRequest,
WrappedInvocationBuilder ib,
com.google.common.base.Function<javax.ws.rs.core.Response,RESPONSE> transformer)
Deprecated.
use the method without Guava parameters instead
|
static <T> T |
HeaderUtils.toValue(String headerName,
String value,
Class<T> clazz)
Deserialize a header value to its desired type if possible.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultRequestSigner
Class that exposes a way to create a
RequestSigner for use with OCI. |
class |
SigningStrategy
Enum for the various signing strategies used by OCI.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
KeySupplier<T>
Interface for anything that can get supply a Key of type T given a keyId
|
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.collect.ImmutableList<String> |
Constants.GENERIC_HEADERS
Deprecated.
Use GENERIC_HEADERS_LIST instead
|
static List<String> |
Constants.GENERIC_HEADERS_LIST |
static String |
Constants.HOST |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,List<String>> |
Constants.createHeadersToSignForVerbMap(List<String> getHeaders,
List<String> headHeaders,
List<String> deleteHeaders,
List<String> putHeaders,
List<String> postHeaders,
List<String> patchHeaders)
Creates a map of headers to sign for each HTTP method.
|
static com.google.common.collect.ImmutableMap<String,List<String>> |
Constants.createHeadersToSignMap(List<String> getHeaders,
List<String> headHeaders,
List<String> deleteHeaders,
List<String> putHeaders,
List<String> postHeaders,
List<String> patchHeaders)
Deprecated.
use createHeadersToSignForVerbMap instead
|
com.google.common.base.Optional<RSAPrivateKey> |
PEMFileRSAPrivateKeySupplier.getKey()
Deprecated.
use supplyKey instead
|
default com.google.common.base.Optional<T> |
KeySupplier.getKey(String keyId)
Deprecated.
use supplyKey instead
|
com.google.common.base.Optional<RSAPrivateKey> |
PEMFileRSAPrivateKeySupplier.getKey(String ignored)
Deprecated.
use supplyKey instead
|
Optional<RSAPrivateKey> |
PEMFileRSAPrivateKeySupplier.supplyKey()
Get the key from the file.
|
Optional<T> |
KeySupplier.supplyKey(String keyId)
Try to get a key for the given KeyId
|
Optional<RSAPrivateKey> |
PEMFileRSAPrivateKeySupplier.supplyKey(String ignored)
Get the key from the file.
|
| Constructor and Description |
|---|
DefaultRequestSignerFactory(SigningStrategy signingStrategy) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
RequestBuilderAndToken.getNextPageToken() |
com.google.common.base.Optional<String> |
RequestBuilderAndToken.getToken()
Deprecated.
|
static <T> RequestBuilderAndToken<T> |
RequestBuilderAndToken.initialPage(T requestBuilder) |
static <T> RequestBuilderAndToken<T> |
RequestBuilderAndToken.subsequentPage(T requestBuilder,
Optional<String> token) |
| Constructor and Description |
|---|
RequestBuilderAndToken(T requestBuilder,
com.google.common.base.Optional<String> token)
Deprecated.
|
ResponseIterable(Supplier<REQUESTBUILDER> requestBuilderSupplier,
Function<RESPONSE,String> nextPageTokenRetrievalFunction,
Function<RequestBuilderAndToken<REQUESTBUILDER>,REQUEST> requestBuilderFunction,
Function<REQUEST,RESPONSE> pageRetrievalFunction)
Creates a new iterable.
|
ResponseIterable(com.google.common.base.Supplier<REQUESTBUILDER> requestBuilderSupplier,
com.google.common.base.Function<RESPONSE,String> nextPageTokenRetrievalFunction,
com.google.common.base.Function<RequestBuilderAndToken<REQUESTBUILDER>,REQUEST> requestBuilderFunction,
com.google.common.base.Function<REQUEST,RESPONSE> pageRetrievalFunction)
Deprecated.
use the constructor without Guava parameters instead
|
ResponseRecordIterable(Supplier<REQUESTBUILDER> requestBuilderSupplier,
Function<RESPONSE,String> nextPageTokenRetrievalFunction,
Function<RequestBuilderAndToken<REQUESTBUILDER>,REQUEST> requestBuilderFunction,
Function<REQUEST,RESPONSE> pageRetrievalFunction,
Function<RESPONSE,List<ITEMTYPE>> retrieveItemsFromResponseFunction)
Creates a new iterable.
|
ResponseRecordIterable(com.google.common.base.Supplier<REQUESTBUILDER> requestBuilderSupplier,
com.google.common.base.Function<RESPONSE,String> nextPageTokenRetrievalFunction,
com.google.common.base.Function<RequestBuilderAndToken<REQUESTBUILDER>,REQUEST> requestBuilderFunction,
com.google.common.base.Function<REQUEST,RESPONSE> pageRetrievalFunction,
com.google.common.base.Function<RESPONSE,List<ITEMTYPE>> retrieveItemsFromResponseFunction)
Deprecated.
use the constructor without Guava parameters instead
|
| Modifier and Type | Method and Description |
|---|---|
default BmcRequest.Builder<T,B> |
BmcRequest.Builder.body$(B body)
Alternative setter for the body parameter, if this request supports a body.
|
B |
BmcRequest.getBody$()
Alternative accessor for the body parameter, if this request supports a body.
|
boolean |
BmcRequest.supportsExpect100Continue()
Returns true if this operation supports Expect: 100-Continue.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Retriers.tryResetStreamForRetry(InputStream body)
Try to reset the
InputStream for the next retry, if supported. |
static void |
Retriers.tryResetStreamForRetry(InputStream body,
boolean failIfUnsupported)
Try to reset the
InputStream for the next retry, if supported. |
static <T extends BmcRequest<InputStream>> |
Retriers.wrapBodyInputStreamIfNecessary(T request,
BmcRequest.Builder<T,InputStream> builder)
Wrap the input stream in the request so retries can work.
|
static InputStream |
Retriers.wrapInputStreamForRetry(InputStream body)
Wrap the input stream so retries can work.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JavaRuntimeUtils
Various runtime utils.
|
Copyright © 2016–2022. All rights reserved.