@ControllerAdvice public class WxMessageResponseBodyAdvice extends Object implements org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<WxMessage>, org.springframework.core.Ordered
| Constructor and Description |
|---|
WxMessageResponseBodyAdvice(WxMessageProcessor wxMessageProcessor) |
| Modifier and Type | Method and Description |
|---|---|
WxMessage |
beforeBodyWrite(WxMessage body,
org.springframework.core.MethodParameter returnType,
org.springframework.http.MediaType selectedContentType,
Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> selectedConverterType,
org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response) |
int |
getOrder() |
boolean |
supports(org.springframework.core.MethodParameter returnType,
Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) |
public WxMessageResponseBodyAdvice(WxMessageProcessor wxMessageProcessor)
public int getOrder()
getOrder in interface org.springframework.core.Orderedpublic boolean supports(org.springframework.core.MethodParameter returnType,
Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
supports in interface org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<WxMessage>public WxMessage beforeBodyWrite(WxMessage body, org.springframework.core.MethodParameter returnType, org.springframework.http.MediaType selectedContentType, 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<WxMessage>Copyright © 2018 Guangshan Technology, Inc.. All rights reserved.