Class WebTargetValueParamProvider.BindingModel
- java.lang.Object
-
- org.glassfish.jersey.server.internal.inject.WebTargetValueParamProvider.BindingModel
-
- Enclosing class:
- WebTargetValueParamProvider
private static class WebTargetValueParamProvider.BindingModel extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.annotation.Annotation
annotation
private java.lang.String
baseUri
private java.lang.Class<? extends javax.ws.rs.core.Configuration>
configClass
static WebTargetValueParamProvider.BindingModel
EMPTY
private boolean
inheritProviders
-
Constructor Summary
Constructors Modifier Constructor Description private
BindingModel(java.lang.annotation.Annotation annotation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
baseUri()
Get the client base URI.static WebTargetValueParamProvider.BindingModel
create(java.lang.annotation.Annotation binding)
Create a client binding model from aclient binding
annotation.static WebTargetValueParamProvider.BindingModel
create(java.util.Collection<java.lang.annotation.Annotation> bindingCandidates)
Create a client binding model from a set ofclient binding
annotation candidates.boolean
equals(java.lang.Object o)
java.lang.annotation.Annotation
getAnnotation()
Get the client binding annotation this model represents.java.lang.Class<? extends javax.ws.rs.core.Configuration>
getConfigClass()
Get the configuration class to be used.int
hashCode()
boolean
inheritProviders()
Check if the server-side providers should be inherited.java.lang.String
toString()
-
-
-
Field Detail
-
EMPTY
public static final WebTargetValueParamProvider.BindingModel EMPTY
-
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
-
-
Method Detail
-
create
public static WebTargetValueParamProvider.BindingModel create(java.lang.annotation.Annotation binding)
Create a client binding model from aclient 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 ofclient 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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-