public class ProvideLinkDescriptor extends Object
ProvideLink annotations.| Constructor and Description |
|---|
ProvideLinkDescriptor(ResourceMethod resource,
ProvideLink provideLink,
Annotation parentAnnotation)
c'tor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBinding(String name)
Get the binding as an EL expression for a particular URI template parameter
|
String |
getCondition()
Get the condition.
|
Link |
getLink(URI uri)
Builds a link from a
URI. |
InjectLink.Style |
getLinkStyle()
Get the style
|
String |
getLinkTemplate(ResourceMappingContext rmc)
Get the link template, either directly from the value() or from the
@Path of the class referenced in resource() |
Annotation |
getParentAnnotation() |
ProvideLink |
getProvideLink() |
ResourceMethod |
getResource() |
public ProvideLinkDescriptor(ResourceMethod resource, ProvideLink provideLink, Annotation parentAnnotation)
resource - the annotated resource methodprovideLink - the annotaionparentAnnotation - the parent annotation if present or nullpublic ProvideLink getProvideLink()
public ResourceMethod getResource()
public InjectLink.Style getLinkStyle()
public String getLinkTemplate(ResourceMappingContext rmc)
@Path of the class referenced in resource()public String getBinding(String name)
name - binding name.public String getCondition()
public Link getLink(URI uri)
URI.uri - base URILink instancepublic Annotation getParentAnnotation()
nullCopyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.