@ControllerAdvice
public class SpearalResponseBodyAdvice
extends java.lang.Object
implements org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<java.lang.Object>
| Constructor and Description |
|---|
SpearalResponseBodyAdvice(org.spearal.SpearalFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
beforeBodyWrite(java.lang.Object body,
org.springframework.core.MethodParameter returnType,
org.springframework.http.MediaType selectedContentType,
java.lang.Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> selectedConverterType,
org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response) |
boolean |
supports(org.springframework.core.MethodParameter returnType,
java.lang.Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) |
public SpearalResponseBodyAdvice(org.spearal.SpearalFactory factory)
public boolean supports(org.springframework.core.MethodParameter returnType,
java.lang.Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
supports in interface org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<java.lang.Object>public java.lang.Object beforeBodyWrite(java.lang.Object body,
org.springframework.core.MethodParameter returnType,
org.springframework.http.MediaType selectedContentType,
java.lang.Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> selectedConverterType,
org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response)
beforeBodyWrite in interface org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<java.lang.Object>