Class WebTargetValueParamProvider.BindingModel

java.lang.Object
org.glassfish.jersey.server.internal.inject.WebTargetValueParamProvider.BindingModel
Enclosing class:
WebTargetValueParamProvider

private static class WebTargetValueParamProvider.BindingModel extends Object
  • Field Details

    • EMPTY

      public static final WebTargetValueParamProvider.BindingModel EMPTY
    • annotation

      private final Annotation annotation
    • configClass

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

      private final boolean inheritProviders
    • baseUri

      private final String baseUri
  • Constructor Details

    • BindingModel

      private BindingModel(Annotation annotation)
  • Method Details

    • create

      public static WebTargetValueParamProvider.BindingModel create(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(Collection<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 Annotation getAnnotation()
      Get the client binding annotation this model represents.
      Returns:
      client binding annotation.
    • getConfigClass

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object