Class WebTargetValueParamProvider.BindingModel

    • Field Detail

      • annotation

        private final java.lang.annotation.Annotation annotation
      • configClass

        private final java.lang.Class<? extends javax.ws.rs.core.Configuration> configClass
      • inheritProviders

        private final boolean inheritProviders
      • baseUri

        private final java.lang.String baseUri
    • Constructor Detail

      • BindingModel

        private BindingModel​(java.lang.annotation.Annotation annotation)
    • Method Detail

      • create

        public static WebTargetValueParamProvider.BindingModel create​(java.lang.annotation.Annotation binding)
        Create a client binding model from a client binding annotation.
        Parameters:
        binding - client binding annotation.
        Returns:
        binding model representing a single client binding annotation.
      • create

        public static WebTargetValueParamProvider.BindingModel create​(java.util.Collection<java.lang.annotation.Annotation> bindingCandidates)
        Create a client binding model from a set of client binding annotation candidates.

        A ClientBinding marker meta-annotation is used to select the set of binding annotations. Only those annotations that are annotated with the binding marker meta-annotation are considered as binding annotations. All other annotations are filtered out and ignored.

        Parameters:
        bindingCandidates - candidate binding annotations.
        Returns:
        composite binding representing the union of the individual binding annotations found among the binding candidates.
      • getAnnotation

        public java.lang.annotation.Annotation getAnnotation()
        Get the client binding annotation this model represents.
        Returns:
        client binding annotation.
      • getConfigClass

        public java.lang.Class<? extends javax.ws.rs.core.Configuration> getConfigClass()
        Get the configuration class to be used.
        Returns:
        client configuration class to be used.
      • inheritProviders

        public boolean inheritProviders()
        Check if the server-side providers should be inherited.
        Returns:
        true if server-side providers should be inherited, false otherwise.
      • baseUri

        public java.lang.String baseUri()
        Get the client base URI.
        Returns:
        client base URI.
      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object