Spring Hateoas

org.springframework.hateoas.mvc
Interface UriComponentsContributor


public interface UriComponentsContributor

SPI callback to enhance a UriComponentsBuilder when referring to a method through a dummy method invocation. Will usually be implemented in implementations of HandlerMethodArgumentResolver as they represent exactly the same functionality inverted.

Author:
Oliver Gierke
See Also:
MethodLinkBuilderFactory.linkTo(Object)

Method Summary
 void enhance(UriComponentsBuilder builder, MethodParameter parameter, Object value)
          Enhance the given UriComponentsBuilder with the given value.
 boolean supportsParameter(MethodParameter parameter)
          Returns whether the UriComponentsBuilder supports the given MethodParameter.
 

Method Detail

supportsParameter

boolean supportsParameter(MethodParameter parameter)
Returns whether the UriComponentsBuilder supports the given MethodParameter.

Parameters:
parameter - will never be null.
Returns:

enhance

void enhance(UriComponentsBuilder builder,
             MethodParameter parameter,
             Object value)
Enhance the given UriComponentsBuilder with the given value.

Parameters:
builder - will never be null.
parameter - will never be null.
value - can be null.

Spring Hateoas

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