B
- type of the body parameterpublic class BmcRequest<B> extends Object
Request base class.
Modifier and Type | Class and Description |
---|---|
static interface |
BmcRequest.Builder<T extends BmcRequest<B>,B>
Builder interface for requests.
|
Constructor and Description |
---|
BmcRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Uses getInvocationCallback and getRetryConfiguration to determine if passed request is equal
to ‘this’.
|
B |
getBody$()
Alternative accessor for the body parameter, if this request supports a body.
|
com.oracle.bmc.http.client.RequestInterceptor |
getInvocationCallback()
Optional consumer that will be invoked before the actual REST call is made.
|
RetryConfiguration |
getRetryConfiguration()
Optional
RetryConfiguration to use for this request. |
int |
hashCode()
Uses getInvocationCallback and getRetryConfiguration to generate a hash.
|
void |
setInvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Optional consumer that will be invoked before the actual REST call is made.
|
void |
setRetryConfiguration(RetryConfiguration retryConfiguration)
Optional
RetryConfiguration to use for this request. |
boolean |
supportsExpect100Continue()
Returns true if this operation supports Expect: 100-Continue.
|
public B getBody$()
Alternative accessor for the body parameter, if this request supports a body.
If this request does not support a body, an IllegalStateException
is thrown.
IllegalStateException
- if this request does not support a bodypublic boolean supportsExpect100Continue()
Returns true if this operation supports Expect: 100-Continue.
public boolean equals(Object o)
Uses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.
public int hashCode()
Uses getInvocationCallback and getRetryConfiguration to generate a hash.
public void setInvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Optional consumer that will be invoked before the actual REST call is made. Allows callers to alter/add any parameters that were not directly configurable otherwise. Attempting to invoke or build the builder in any way will result in an exception.
For the Invocation.Builder#headers(MultivaluedMap)
method, note that modifying the
passed in headers
map after the call does not have any effect on headers set.
public com.oracle.bmc.http.client.RequestInterceptor getInvocationCallback()
Optional consumer that will be invoked before the actual REST call is made. Allows callers to alter/add any parameters that were not directly configurable otherwise. Attempting to invoke or build the builder in any way will result in an exception.
For the Invocation.Builder#headers(MultivaluedMap)
method, note that modifying the
passed in headers
map after the call does not have any effect on headers set.
public void setRetryConfiguration(RetryConfiguration retryConfiguration)
Optional RetryConfiguration
to use for this request.
Note: This overrides the retry configurations set on the client (via ClientConfiguration
and SDK level (via Retriers.setDefaultRetryConfiguration(RetryConfiguration)
public RetryConfiguration getRetryConfiguration()
Optional RetryConfiguration
to use for this request.
Note: This overrides the retry configurations set on the client (via ClientConfiguration
and SDK level (via Retriers.setDefaultRetryConfiguration(RetryConfiguration)
Copyright © 2016–2024. All rights reserved.