org.apache.wink.server.utils
Interface SingleLinkBuilder

All Superinterfaces:
BaseLinksBuilder<SingleLinkBuilder>

public interface SingleLinkBuilder
extends BaseLinksBuilder<SingleLinkBuilder>

A builder for generating a single link to a resource. The link is created absolute or relative to the base uri according to the configuration or request settings.


Method Summary
 SingleLinkBuilder rel(String rel)
          Set the rel attribute of the link
 SingleLinkBuilder type(javax.ws.rs.core.MediaType type)
          Set the type attribute of the link
 
Methods inherited from interface org.apache.wink.server.utils.BaseLinksBuilder
addAltParam, baseUri, build, pathParam, queryParam, relativeTo, relativize, resource, resource, subResource
 

Method Detail

type

SingleLinkBuilder type(javax.ws.rs.core.MediaType type)
Set the type attribute of the link

Parameters:
type - media type attribute of the link to generate
Returns:
this links builder

rel

SingleLinkBuilder rel(String rel)
Set the rel attribute of the link

Parameters:
rel - the rel attribute of the link
Returns:
this links builder


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