类 GlobalRequestHandler
java.lang.Object
com.cdkjframework.core.spring.body.BodyHandler
com.cdkjframework.core.spring.body.GlobalRequestHandler
- 所有已实现的接口:
org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
@ControllerAdvice
public class GlobalRequestHandler
extends BodyHandler
implements org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明afterBodyRead
(Object o, org.springframework.http.HttpInputMessage httpInputMessage, org.springframework.core.MethodParameter methodParameter, Type type, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> aClass) 阅读后org.springframework.http.HttpInputMessage
beforeBodyRead
(org.springframework.http.HttpInputMessage httpInputMessage, org.springframework.core.MethodParameter methodParameter, Type type, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> aClass) 阅读前handleEmptyBody
(Object o, org.springframework.http.HttpInputMessage httpInputMessage, org.springframework.core.MethodParameter methodParameter, Type type, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> aClass) 处理空体boolean
supports
(org.springframework.core.MethodParameter methodParameter, Type type, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> clazz) 验证是否修改
-
构造器详细资料
-
GlobalRequestHandler
public GlobalRequestHandler()
-
-
方法详细资料
-
supports
public boolean supports(org.springframework.core.MethodParameter methodParameter, @NonNull Type type, @NonNull Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> clazz) 验证是否修改- 指定者:
supports
在接口中org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
- 参数:
methodParameter
- 请求类型type
- 参数类型clazz
- 类- 返回:
- 返回布尔
-
beforeBodyRead
@NonNull public org.springframework.http.HttpInputMessage beforeBodyRead(org.springframework.http.HttpInputMessage httpInputMessage, @NonNull org.springframework.core.MethodParameter methodParameter, @NonNull Type type, @NonNull Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> aClass) throws IOException 阅读前- 指定者:
beforeBodyRead
在接口中org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
- 参数:
httpInputMessage
- http请求消息methodParameter
- 请求类型type
- 类型aClass
- 类- 返回:
- 返回结果
- 抛出:
IOException
- 异常
-
afterBodyRead
@NonNull public Object afterBodyRead(@NonNull Object o, @NonNull org.springframework.http.HttpInputMessage httpInputMessage, @NonNull org.springframework.core.MethodParameter methodParameter, @NonNull Type type, @NonNull Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> aClass) 阅读后- 指定者:
afterBodyRead
在接口中org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
- 参数:
o
- 请求内容httpInputMessage
- http请求消息methodParameter
- 请求类型type
- 类型aClass
- 类- 返回:
- 返回结果
-
handleEmptyBody
public Object handleEmptyBody(Object o, @NonNull org.springframework.http.HttpInputMessage httpInputMessage, @NonNull org.springframework.core.MethodParameter methodParameter, @NonNull Type type, @NonNull Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> aClass) 处理空体- 指定者:
handleEmptyBody
在接口中org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
- 参数:
o
- 请求内容httpInputMessage
- http请求消息methodParameter
- 请求类型type
- 类型aClass
- 类- 返回:
- 返回结果
-