public class WrappedInvocationBuilder extends ForwardingInvocationBuilder
An Invocation.Builder that stores the headers being set, allowing access to them.
Delegates to an underlying builder.
| Constructor and Description |
|---|
WrappedInvocationBuilder(javax.ws.rs.client.Invocation.Builder delegate,
URI requestUri) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.client.Invocation.Builder |
delegate() |
javax.ws.rs.core.MultivaluedMap<String,Object> |
getHeaders()
This structure stores all the headers set by the customer in the invocation callback.
|
URI |
getRequestUri()
This structure stores the request URI set by the customer in the invocation callback.
|
ForwardingInvocationBuilder |
header(String name,
Object value) |
ForwardingInvocationBuilder |
headers(javax.ws.rs.core.MultivaluedMap<String,Object> headers)
Replaces all existing headers with the newly supplied headers.
|
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@ConstructorProperties(value={"delegate","requestUri"}) public WrappedInvocationBuilder(javax.ws.rs.client.Invocation.Builder delegate, URI requestUri)
public javax.ws.rs.client.Invocation.Builder delegate()
delegate in class ForwardingInvocationBuilderpublic ForwardingInvocationBuilder header(String name, Object value)
header in interface javax.ws.rs.client.Invocation.Builderheader in class ForwardingInvocationBuilderpublic 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.
headers in interface javax.ws.rs.client.Invocation.Builderheaders in class ForwardingInvocationBuilderheaders - new headers to be set, if null all existing
headers will be removed.public javax.ws.rs.core.MultivaluedMap<String,Object> getHeaders()
This structure stores all the headers set by the customer in the invocation callback.
public URI getRequestUri()
This structure stores the request URI set by the customer in the invocation callback.
Copyright © 2016–2022. All rights reserved.