org.apache.wink.server.utils
Interface SystemLinksBuilder

All Superinterfaces:
BaseLinksBuilder<SystemLinksBuilder>

public interface SystemLinksBuilder
extends BaseLinksBuilder<SystemLinksBuilder>

A builder for generating the system links of a resource. The links are created absolute or relative to the base uri according to the configuration or request settings.


Nested Class Summary
static class SystemLinksBuilder.LinkType
          Types of system links
 
Method Summary
 SystemLinksBuilder allResources(boolean all)
          Determines if this system links builder will generate links for all the root resources that are reachable when the search mode is "Continued Search" or just the current active resource.
 SystemLinksBuilder types(SystemLinksBuilder.LinkType... types)
          Set the types of system links to generate.
 
Methods inherited from interface org.apache.wink.server.utils.BaseLinksBuilder
addAltParam, baseUri, build, pathParam, queryParam, relativeTo, relativize, resource, resource, subResource
 

Method Detail

types

SystemLinksBuilder types(SystemLinksBuilder.LinkType... types)
Set the types of system links to generate. If this method is not called or if no types are specified, then all the possible types will be generated.

Parameters:
types - the types of system links to generate
Returns:
this links builder

allResources

SystemLinksBuilder allResources(boolean all)
Determines if this system links builder will generate links for all the root resources that are reachable when the search mode is "Continued Search" or just the current active resource. If this method is not called, then the builder will use the value defined by the wink.searchPolicyContinuedSearch property.

Parameters:
all - If set to true then this system links builder will generate links for all the root resources that are reachable when the search mode is "Continued Search".
Returns:
this links builder


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.