|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the derived type of the links builderpublic interface BaseLinksBuilder<T>
Base interface for the the two types of link builders.
SingleLinkBuilder,
SystemLinksBuilder| Method Summary | |
|---|---|
T |
addAltParam(boolean addAltParam)
Set whether the to automatically add to the generated links the "alt" query parameter indicating the link type. |
T |
baseUri(java.net.URI base)
Set the base uri for this builder. |
java.util.List<SyndLink> |
build(java.util.List<SyndLink> out)
Build the link(s) and add them to the provided list. |
T |
pathParam(java.lang.String name,
java.lang.String value)
Set the value of a template path parameter to be used during the building of the links. |
T |
queryParam(java.lang.String name,
java.lang.String value)
Set the value of a query parameter to be added to the generated links |
T |
relativeTo(java.net.URI relativeTo)
Set the uri that the generated links will be relative to, if the generation mode is relative uri's. |
T |
relativize(boolean relativize)
Set whether the links should be generated absolute or relative, overriding any configuration and request settings. |
T |
resource(java.lang.Class<?> resource)
Set the resource class that the generated links should link to. |
T |
resource(java.lang.Object resource)
Set the resource instance that the generated links should link to. |
T |
subResource(java.lang.String template)
Set the sub-resource path that the generated links should link to, relative to the resource set in the builder. |
| Method Detail |
|---|
T resource(java.lang.Class<?> resource)
resource - a resource class annotated with the
Path annotation
T resource(java.lang.Object resource)
resource - a resource instance, or null to use the current resource
T subResource(java.lang.String template)
template - the template path of the sub-resource
T baseUri(java.net.URI base)
null, then the base uri as obtained from
UriInfo.getBaseUri() is used.
base - the base uri for this builder, or null
T relativeTo(java.net.URI relativeTo)
null, then the generated links will be relative
to the path obtained from UriInfo.getPath().
relativeTo - the relative uri for this builder, or null
T pathParam(java.lang.String name,
java.lang.String value)
name - the name of the path parametervalue - the value of the path parameter
T queryParam(java.lang.String name,
java.lang.String value)
name - the name of the query parameter to add to the generated linksvalue - the value of the query parameter
T relativize(boolean relativize)
wink.defaultUrisRelative configuration property.
relativize - true to produce relative links,
false to produce absolute links
T addAltParam(boolean addAltParam)
wink.addAltParam configuration property.
addAltParam - true to add the "alt" parameter
java.util.List<SyndLink> build(java.util.List<SyndLink> out)
out - the output list of links to add the generated link(s) to. If
the provided list is null then a new list is
created.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||