@ControllerAdvice public static class EndpointWebMvcHypermediaManagementContextConfiguration.LinksConfiguration.HomePageLinksAdvice extends Object implements ResponseBodyAdvice<Object>
ResourceSupport
(e.g. when using Spring Data REST).Constructor and Description |
---|
HomePageLinksAdvice() |
Modifier and Type | Method and Description |
---|---|
Object |
beforeBodyWrite(Object body,
MethodParameter returnType,
MediaType selectedContentType,
Class<? extends HttpMessageConverter<?>> selectedConverterType,
ServerHttpRequest request,
ServerHttpResponse response) |
void |
init() |
boolean |
supports(MethodParameter returnType,
Class<? extends HttpMessageConverter<?>> converterType) |
@PostConstruct public void init()
public boolean supports(MethodParameter returnType, Class<? extends HttpMessageConverter<?>> converterType)
supports
in interface ResponseBodyAdvice<Object>
public Object beforeBodyWrite(Object body, MethodParameter returnType, MediaType selectedContentType, Class<? extends HttpMessageConverter<?>> selectedConverterType, ServerHttpRequest request, ServerHttpResponse response)
beforeBodyWrite
in interface ResponseBodyAdvice<Object>
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.