@ControllerAdvice public class EmptyToNullInterceptor extends Object implements org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
Constructor and Description |
---|
EmptyToNullInterceptor() |
Modifier and Type | Method and Description |
---|---|
Object |
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) |
Object |
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<?>> aClass) |
public EmptyToNullInterceptor()
public boolean supports(org.springframework.core.MethodParameter methodParameter, Type type, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> aClass)
supports
in interface org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
public 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) throws IOException
beforeBodyRead
in interface org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
IOException
public Object afterBodyRead(Object o, org.springframework.http.HttpInputMessage httpInputMessage, org.springframework.core.MethodParameter methodParameter, Type type, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> aClass)
afterBodyRead
in interface org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
public Object handleEmptyBody(Object o, org.springframework.http.HttpInputMessage httpInputMessage, org.springframework.core.MethodParameter methodParameter, Type type, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> aClass)
handleEmptyBody
in interface org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.