Class RequestBodyAdviceAdapter

  • All Implemented Interfaces:
    org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
    Direct Known Subclasses:
    StoringRequestBodyArgumentAdvice

    public abstract class RequestBodyAdviceAdapter
    extends java.lang.Object
    implements org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
    RequestBodyAdvice Adapter Class
    Since:
    1.0.0
    Author:
    Mercy
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object afterBodyRead​(java.lang.Object body, org.springframework.http.HttpInputMessage inputMessage, org.springframework.core.MethodParameter parameter, java.lang.reflect.Type targetType, java.lang.Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)  
      org.springframework.http.HttpInputMessage beforeBodyRead​(org.springframework.http.HttpInputMessage inputMessage, org.springframework.core.MethodParameter parameter, java.lang.reflect.Type targetType, java.lang.Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)  
      java.lang.Object handleEmptyBody​(java.lang.Object body, org.springframework.http.HttpInputMessage inputMessage, org.springframework.core.MethodParameter parameter, java.lang.reflect.Type targetType, java.lang.Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice

        supports
    • Constructor Detail

      • RequestBodyAdviceAdapter

        public RequestBodyAdviceAdapter()
    • Method Detail

      • beforeBodyRead

        public org.springframework.http.HttpInputMessage beforeBodyRead​(org.springframework.http.HttpInputMessage inputMessage,
                                                                        org.springframework.core.MethodParameter parameter,
                                                                        java.lang.reflect.Type targetType,
                                                                        java.lang.Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
                                                                 throws java.io.IOException
        Specified by:
        beforeBodyRead in interface org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
        Throws:
        java.io.IOException
      • afterBodyRead

        public java.lang.Object afterBodyRead​(java.lang.Object body,
                                              org.springframework.http.HttpInputMessage inputMessage,
                                              org.springframework.core.MethodParameter parameter,
                                              java.lang.reflect.Type targetType,
                                              java.lang.Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
        Specified by:
        afterBodyRead in interface org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
      • handleEmptyBody

        public java.lang.Object handleEmptyBody​(java.lang.Object body,
                                                org.springframework.http.HttpInputMessage inputMessage,
                                                org.springframework.core.MethodParameter parameter,
                                                java.lang.reflect.Type targetType,
                                                java.lang.Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
        Specified by:
        handleEmptyBody in interface org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice