Class ResponseBodyAdviceConfig
- java.lang.Object
-
- io.mosip.kernel.keymanagerservice.config.ResponseBodyAdviceConfig
-
- All Implemented Interfaces:
org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<ResponseWrapper<?>>
@RestControllerAdvice public class ResponseBodyAdviceConfig extends Object implements org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<ResponseWrapper<?>>
- Author:
- Bal Vikash Sharma
-
-
Constructor Summary
Constructors Constructor Description ResponseBodyAdviceConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseWrapper<?>beforeBodyWrite(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)booleansupports(org.springframework.core.MethodParameter returnType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
-
-
-
Method Detail
-
supports
public boolean supports(org.springframework.core.MethodParameter returnType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)- Specified by:
supportsin interfaceorg.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<ResponseWrapper<?>>
-
beforeBodyWrite
public ResponseWrapper<?> beforeBodyWrite(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:
beforeBodyWritein interfaceorg.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<ResponseWrapper<?>>
-
-