类 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)
    验证是否修改

    从类继承的方法 java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • 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 - 类
      返回:
      返回结果