Package org.glassfish.jersey.linking
Class ProvideLinkDescriptor
java.lang.Object
org.glassfish.jersey.linking.ProvideLinkDescriptor
Utility to work with
ProvideLink
annotations.- Author:
- Leonard Brünings
-
Constructor Summary
ConstructorDescriptionProvideLinkDescriptor
(ResourceMethod resource, ProvideLink provideLink, Annotation parentAnnotation) c'tor -
Method Summary
Modifier and TypeMethodDescriptiongetBinding
(String name) Get the binding as an EL expression for a particular URI template parameterGet the condition.Builds a link from aURI
.Get the styleGet the link template, either directly from the value() or from the@Path
of the class referenced in resource()
-
Constructor Details
-
ProvideLinkDescriptor
public ProvideLinkDescriptor(ResourceMethod resource, ProvideLink provideLink, Annotation parentAnnotation) c'tor- Parameters:
resource
- the annotated resource methodprovideLink
- the annotaionparentAnnotation
- the parent annotation if present ornull
-
-
Method Details
-
getProvideLink
- Returns:
- the annotation
-
getResource
- Returns:
- the annotated resource method
-
getLinkStyle
Get the style- Returns:
- the style
-
getLinkTemplate
Get the link template, either directly from the value() or from the@Path
of the class referenced in resource()- Returns:
- the link template
-
getBinding
Get the binding as an EL expression for a particular URI template parameter- Parameters:
name
- binding name.- Returns:
- the EL binding.
-
getCondition
Get the condition.- Returns:
- the condition
-
getLink
Builds a link from aURI
.- Parameters:
uri
- base URI- Returns:
- the
Link
instance
-
getParentAnnotation
- Returns:
- the parent annotation or
null
-