Class WrappedInvocationBuilder

  • All Implemented Interfaces:
    javax.ws.rs.client.Invocation.Builder, javax.ws.rs.client.SyncInvoker

    public class WrappedInvocationBuilder
    extends ForwardingInvocationBuilder
    An Invocation.Builder that stores the headers being set, allowing access to them.

    Delegates to an underlying builder.

    • Constructor Detail

      • WrappedInvocationBuilder

        @ConstructorProperties({"delegate","requestUri"})
        public WrappedInvocationBuilder​(javax.ws.rs.client.Invocation.Builder delegate,
                                        URI requestUri)
    • Method Detail

      • 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:
        headers in interface javax.ws.rs.client.Invocation.Builder
        Overrides:
        headers in class ForwardingInvocationBuilder
        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.