Spring Hateoas

org.springframework.hateoas.mvc
Class BasicLinkBuilder

java.lang.Object
  extended by org.springframework.hateoas.core.LinkBuilderSupport<BasicLinkBuilder>
      extended by org.springframework.hateoas.mvc.BasicLinkBuilder
All Implemented Interfaces:
LinkBuilder

public class BasicLinkBuilder
extends LinkBuilderSupport<BasicLinkBuilder>

Simples LinkBuilder implementation possible. Exposes a link to the current servlet mapping only.

Author:
Oliver Gierke

Method Summary
protected  BasicLinkBuilder createNewInstance(UriComponentsBuilder builder)
          Creates a new instance of the sub-class.
protected  BasicLinkBuilder getThis()
          Returns the current concrete instance.
static BasicLinkBuilder linkToCurrentMapping()
          Creates a new BasicLinkBuilder to link to the current servlet mapping.
 
Methods inherited from class org.springframework.hateoas.core.LinkBuilderSupport
slash, slash, toString, toUri, withRel, withSelfRel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

linkToCurrentMapping

public static BasicLinkBuilder linkToCurrentMapping()
Creates a new BasicLinkBuilder to link to the current servlet mapping.

Returns:

createNewInstance

protected BasicLinkBuilder createNewInstance(UriComponentsBuilder builder)
Description copied from class: LinkBuilderSupport
Creates a new instance of the sub-class.

Specified by:
createNewInstance in class LinkBuilderSupport<BasicLinkBuilder>
Parameters:
builder - will never be null.
Returns:

getThis

protected BasicLinkBuilder getThis()
Description copied from class: LinkBuilderSupport
Returns the current concrete instance.

Specified by:
getThis in class LinkBuilderSupport<BasicLinkBuilder>
Returns:

Spring Hateoas

Copyright © 2012-2014-2014 Pivotal, Inc.. All Rights Reserved.