Package com.oracle.bmc.http.internal
Class WrappedInvocationBuilder
- java.lang.Object
-
- com.oracle.bmc.http.internal.ForwardingInvocationBuilder
-
- com.oracle.bmc.http.internal.WrappedInvocationBuilder
-
- All Implemented Interfaces:
javax.ws.rs.client.Invocation.Builder,javax.ws.rs.client.SyncInvoker
public class WrappedInvocationBuilder extends ForwardingInvocationBuilder
AnInvocation.Builderthat stores the headers being set, allowing access to them.Delegates to an underlying builder.
-
-
Constructor Summary
Constructors Constructor Description WrappedInvocationBuilder(javax.ws.rs.client.Invocation.Builder delegate, URI requestUri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.client.Invocation.Builderdelegate()javax.ws.rs.core.MultivaluedMap<String,Object>getHeaders()This structure stores all the headers set by the customer in the invocation callback.URIgetRequestUri()This structure stores the request URI set by the customer in the invocation callback.ForwardingInvocationBuilderheader(String name, Object value)ForwardingInvocationBuilderheaders(javax.ws.rs.core.MultivaluedMap<String,Object> headers)Replaces all existing headers with the newly supplied headers.-
Methods inherited from class com.oracle.bmc.http.internal.ForwardingInvocationBuilder
accept, accept, acceptEncoding, acceptLanguage, acceptLanguage, async, build, build, buildDelete, buildGet, buildPost, buildPut, cacheControl, cookie, cookie, delete, delete, delete, get, get, get, head, method, method, method, method, method, method, options, options, options, post, post, post, property, put, put, put, rx, rx, trace, trace, trace
-
-
-
-
Constructor Detail
-
WrappedInvocationBuilder
@ConstructorProperties({"delegate","requestUri"}) public WrappedInvocationBuilder(javax.ws.rs.client.Invocation.Builder delegate, URI requestUri)
-
-
Method Detail
-
delegate
public javax.ws.rs.client.Invocation.Builder delegate()
- Specified by:
delegatein classForwardingInvocationBuilder
-
header
public ForwardingInvocationBuilder header(String name, Object value)
- Specified by:
headerin interfacejavax.ws.rs.client.Invocation.Builder- Overrides:
headerin classForwardingInvocationBuilder
-
headers
public ForwardingInvocationBuilder headers(javax.ws.rs.core.MultivaluedMap<String,Object> headers)
Replaces all existing headers with the newly supplied headers.Modifying the passed in headers map after this call does not have any effect.
- Specified by:
headersin interfacejavax.ws.rs.client.Invocation.Builder- Overrides:
headersin classForwardingInvocationBuilder- Parameters:
headers- new headers to be set, if null all existing headers will be removed.- Returns:
- the updated builder.
-
getHeaders
public javax.ws.rs.core.MultivaluedMap<String,Object> getHeaders()
This structure stores all the headers set by the customer in the invocation callback.
-
getRequestUri
public URI getRequestUri()
This structure stores the request URI set by the customer in the invocation callback.
-
-