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.Annotationannotationprivate java.lang.StringbaseUriprivate java.lang.Class<? extends javax.ws.rs.core.Configuration>configClassstatic WebTargetValueParamProvider.BindingModelEMPTYprivate booleaninheritProviders
-
Constructor Summary
Constructors Modifier Constructor Description privateBindingModel(java.lang.annotation.Annotation annotation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringbaseUri()Get the client base URI.static WebTargetValueParamProvider.BindingModelcreate(java.lang.annotation.Annotation binding)Create a client binding model from aclient bindingannotation.static WebTargetValueParamProvider.BindingModelcreate(java.util.Collection<java.lang.annotation.Annotation> bindingCandidates)Create a client binding model from a set ofclient bindingannotation candidates.booleanequals(java.lang.Object o)java.lang.annotation.AnnotationgetAnnotation()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.inthashCode()booleaninheritProviders()Check if the server-side providers should be inherited.java.lang.StringtoString()
-
-
-
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 bindingannotation.- 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 bindingannotation candidates.A
ClientBindingmarker 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:
trueif server-side providers should be inherited,falseotherwise.
-
baseUri
public java.lang.String baseUri()
Get the client base URI.- Returns:
- client base URI.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-