org.apache.wink.server.utils
Interface LinkBuilders


public interface LinkBuilders

Provides access to SystemLinksBuilder and to SingleLinkBuilder

This interface can be injected to a resource method using the Context annotation


Method Summary
 SingleLinkBuilder createSingleLinkBuilder()
          Get a new instance of a SingleLinkBuilder.
 SystemLinksBuilder createSystemLinksBuilder()
          Get a new instance of a SystemLinksBuilder.
 

Method Detail

createSingleLinkBuilder

SingleLinkBuilder createSingleLinkBuilder()
Get a new instance of a SingleLinkBuilder. The state of the builder is initialized to reflect the active resource. If a sub-resource was invoked, the state of the builder is set accordingly.

Returns:
a new instance of SingleLinkBuilder with a state reflecting the current active resource and sub-resource

createSystemLinksBuilder

SystemLinksBuilder createSystemLinksBuilder()
Get a new instance of a SystemLinksBuilder. The state of the builder is initialized to reflect the active resource. If a sub-resource was invoked, the state of the builder is set accordingly.

Returns:
a new instance of SystemLinksBuilder with a state reflecting the current active resource and sub-resource


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