Class ClientConfig.State

    • Constructor Detail

      • State

        State​(JerseyClient client)
        Default configuration state constructor with "identity" state change strategy.
        Parameters:
        client - bound parent Jersey client.
      • State

        private State​(JerseyClient client,
                      ClientConfig.State original)
        Copy the original configuration state while using the default state change strategy.
        Parameters:
        client - new Jersey client parent for the state.
        original - configuration strategy to be copied.
    • Method Detail

      • copy

        ClientConfig.State copy()
        Create a copy of the configuration state within the same parent Jersey client instance scope.
        Returns:
        configuration state copy.
      • copy

        ClientConfig.State copy​(JerseyClient client)
        Create a copy of the configuration state in a scope of the given parent Jersey client instance.
        Parameters:
        client - parent Jersey client instance.
        Returns:
        configuration state copy.
      • markAsShared

        void markAsShared()
      • property

        public ClientConfig.State property​(java.lang.String name,
                                           java.lang.Object value)
        Specified by:
        property in interface javax.ws.rs.core.Configurable<ClientConfig.State>
      • loadFrom

        public ClientConfig.State loadFrom​(javax.ws.rs.core.Configuration config)
      • register

        public ClientConfig.State register​(java.lang.Class<?> providerClass,
                                           int bindingPriority)
        Specified by:
        register in interface javax.ws.rs.core.Configurable<ClientConfig.State>
      • register

        public ClientConfig.State register​(java.lang.Class<?> providerClass,
                                           java.lang.Class<?>... contracts)
        Specified by:
        register in interface javax.ws.rs.core.Configurable<ClientConfig.State>
      • register

        public ClientConfig.State register​(java.lang.Class<?> providerClass,
                                           java.util.Map<java.lang.Class<?>,​java.lang.Integer> contracts)
        Specified by:
        register in interface javax.ws.rs.core.Configurable<ClientConfig.State>
      • register

        public ClientConfig.State register​(java.lang.Object provider,
                                           int bindingPriority)
        Specified by:
        register in interface javax.ws.rs.core.Configurable<ClientConfig.State>
      • register

        public ClientConfig.State register​(java.lang.Object provider,
                                           java.lang.Class<?>... contracts)
        Specified by:
        register in interface javax.ws.rs.core.Configurable<ClientConfig.State>
      • register

        public ClientConfig.State register​(java.lang.Object provider,
                                           java.util.Map<java.lang.Class<?>,​java.lang.Integer> contracts)
        Specified by:
        register in interface javax.ws.rs.core.Configurable<ClientConfig.State>
      • executorService

        ClientConfig.State executorService​(java.util.concurrent.ExecutorService executorService)
      • scheduledExecutorService

        ClientConfig.State scheduledExecutorService​(java.util.concurrent.ScheduledExecutorService scheduledExecutorService)
      • getExecutorService

        java.util.concurrent.ExecutorService getExecutorService()
      • getScheduledExecutorService

        java.util.concurrent.ScheduledExecutorService getScheduledExecutorService()
      • getRuntimeType

        public javax.ws.rs.RuntimeType getRuntimeType()
        Specified by:
        getRuntimeType in interface javax.ws.rs.core.Configuration
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getProperties()
        Specified by:
        getProperties in interface javax.ws.rs.core.Configuration
      • getProperty

        public java.lang.Object getProperty​(java.lang.String name)
        Specified by:
        getProperty in interface javax.ws.rs.core.Configuration
      • getPropertyNames

        public java.util.Collection<java.lang.String> getPropertyNames()
        Specified by:
        getPropertyNames in interface javax.ws.rs.core.Configuration
      • isProperty

        public boolean isProperty​(java.lang.String name)
        Description copied from interface: ExtendedConfig
        Get the value of the property with a given name converted to boolean. Returns false if the value is not convertible.
        Specified by:
        isProperty in interface ExtendedConfig
        Parameters:
        name - property name.
        Returns:
        boolean property value or false if the property is not convertible.
      • isEnabled

        public boolean isEnabled​(javax.ws.rs.core.Feature feature)
        Specified by:
        isEnabled in interface javax.ws.rs.core.Configuration
      • isEnabled

        public boolean isEnabled​(java.lang.Class<? extends javax.ws.rs.core.Feature> featureClass)
        Specified by:
        isEnabled in interface javax.ws.rs.core.Configuration
      • isRegistered

        public boolean isRegistered​(java.lang.Object component)
        Specified by:
        isRegistered in interface javax.ws.rs.core.Configuration
      • isRegistered

        public boolean isRegistered​(java.lang.Class<?> componentClass)
        Specified by:
        isRegistered in interface javax.ws.rs.core.Configuration
      • getContracts

        public java.util.Map<java.lang.Class<?>,​java.lang.Integer> getContracts​(java.lang.Class<?> componentClass)
        Specified by:
        getContracts in interface javax.ws.rs.core.Configuration
      • getClasses

        public java.util.Set<java.lang.Class<?>> getClasses()
        Specified by:
        getClasses in interface javax.ws.rs.core.Configuration
      • getInstances

        public java.util.Set<java.lang.Object> getInstances()
        Specified by:
        getInstances in interface javax.ws.rs.core.Configuration
      • configureAutoDiscoverableProviders

        public void configureAutoDiscoverableProviders​(InjectionManager injectionManager,
                                                       java.util.List<AutoDiscoverable> autoDiscoverables)
      • configureForcedAutoDiscoverableProviders

        public void configureForcedAutoDiscoverableProviders​(InjectionManager injectionManager)
      • initRuntime

        private ClientRuntime initRuntime()
        Initialize the newly constructed client instance.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object