Class ResponseBodyAdviceConfig

  • All Implemented Interfaces:
    org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<io.mosip.kernel.core.http.ResponseWrapper<?>>

    @RestControllerAdvice
    public class ResponseBodyAdviceConfig
    extends Object
    implements org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<io.mosip.kernel.core.http.ResponseWrapper<?>>
    Author:
    Bal Vikash Sharma
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.mosip.kernel.core.http.ResponseWrapper<?> beforeBodyWrite​(io.mosip.kernel.core.http.ResponseWrapper<?> 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)  
      boolean supports​(org.springframework.core.MethodParameter returnType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)  
    • Constructor Detail

      • ResponseBodyAdviceConfig

        public ResponseBodyAdviceConfig()
    • Method Detail

      • supports

        public boolean supports​(org.springframework.core.MethodParameter returnType,
                                Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
        Specified by:
        supports in interface org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<io.mosip.kernel.core.http.ResponseWrapper<?>>
      • beforeBodyWrite

        public io.mosip.kernel.core.http.ResponseWrapper<?> beforeBodyWrite​(io.mosip.kernel.core.http.ResponseWrapper<?> 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)
        Specified by:
        beforeBodyWrite in interface org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<io.mosip.kernel.core.http.ResponseWrapper<?>>