Uses of Class
org.springframework.web.bind.ServletRequestBindingException
Package
Description
Provides web-specific data binding functionality.
Support classes for annotation-based handler method processing.
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation
package.Support package for MVC controllers.
-
Uses of ServletRequestBindingException in org.springframework.web.bind
Modifier and TypeClassDescriptionclass
ServletRequestBindingException
subclass that indicates that a matrix variable expected in the method parameters of an@RequestMapping
method is not present among the matrix variables extracted from the URL.class
ServletRequestBindingException
subclass that indicates that a path variable expected in the method parameters of an@RequestMapping
method is not present among the URI variables extracted from the URL.class
ServletRequestBindingException
subclass that indicates that a request cookie expected in the method parameters of an@RequestMapping
method is not present.class
ServletRequestBindingException
subclass that indicates that a request header expected in the method parameters of an@RequestMapping
method is not present.class
Base class forServletRequestBindingException
exceptions that could not bind because the request value is required but is either missing or otherwise resolves tonull
after conversion.class
ServletRequestBindingException
subclass that indicates a missing parameter.class
ServletRequestBindingException
subclass that indicates an unsatisfied parameter condition, as typically expressed using an@RequestMapping
annotation at the@Controller
type level.Modifier and TypeMethodDescriptionvoid
ServletRequestDataBinder.closeNoCatch()
Treats errors as fatal.static Boolean
ServletRequestUtils.getBooleanParameter
(ServletRequest request, String name) Get a Boolean parameter, ornull
if not present.static Double
ServletRequestUtils.getDoubleParameter
(ServletRequest request, String name) Get a Double parameter, ornull
if not present.static Float
ServletRequestUtils.getFloatParameter
(ServletRequest request, String name) Get a Float parameter, ornull
if not present.static Integer
ServletRequestUtils.getIntParameter
(ServletRequest request, String name) Get an Integer parameter, ornull
if not present.static Long
ServletRequestUtils.getLongParameter
(ServletRequest request, String name) Get a Long parameter, ornull
if not present.static boolean
ServletRequestUtils.getRequiredBooleanParameter
(ServletRequest request, String name) Get a boolean parameter, throwing an exception if it isn't found or isn't a boolean.static boolean[]
ServletRequestUtils.getRequiredBooleanParameters
(ServletRequest request, String name) Get an array of boolean parameters, throwing an exception if not found or one isn't a boolean.static double
ServletRequestUtils.getRequiredDoubleParameter
(ServletRequest request, String name) Get a double parameter, throwing an exception if it isn't found or isn't a number.static double[]
ServletRequestUtils.getRequiredDoubleParameters
(ServletRequest request, String name) Get an array of double parameters, throwing an exception if not found or one is not a number.static float
ServletRequestUtils.getRequiredFloatParameter
(ServletRequest request, String name) Get a float parameter, throwing an exception if it isn't found or isn't a number.static float[]
ServletRequestUtils.getRequiredFloatParameters
(ServletRequest request, String name) Get an array of float parameters, throwing an exception if not found or one is not a number.static int
ServletRequestUtils.getRequiredIntParameter
(ServletRequest request, String name) Get an int parameter, throwing an exception if it isn't found or isn't a number.static int[]
ServletRequestUtils.getRequiredIntParameters
(ServletRequest request, String name) Get an array of int parameters, throwing an exception if not found or one is not a number..static long
ServletRequestUtils.getRequiredLongParameter
(ServletRequest request, String name) Get a long parameter, throwing an exception if it isn't found or isn't a number.static long[]
ServletRequestUtils.getRequiredLongParameters
(ServletRequest request, String name) Get an array of long parameters, throwing an exception if not found or one is not a number.static String
ServletRequestUtils.getRequiredStringParameter
(ServletRequest request, String name) Get a String parameter, throwing an exception if it isn't found.static String[]
ServletRequestUtils.getRequiredStringParameters
(ServletRequest request, String name) Get an array of String parameters, throwing an exception if not found.static String
ServletRequestUtils.getStringParameter
(ServletRequest request, String name) Get a String parameter, ornull
if not present. -
Uses of ServletRequestBindingException in org.springframework.web.method.annotation
Modifier and TypeMethodDescriptionprotected void
AbstractCookieValueMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) protected void
RequestHeaderMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) -
Uses of ServletRequestBindingException in org.springframework.web.servlet.mvc.method.annotation
Modifier and TypeMethodDescriptionprotected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleServletRequestBindingException
(ServletRequestBindingException ex, HttpHeaders headers, HttpStatus status, WebRequest request) Customize the response for ServletRequestBindingException.Modifier and TypeMethodDescriptionprotected void
MatrixVariableMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) protected void
PathVariableMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter) -
Uses of ServletRequestBindingException in org.springframework.web.servlet.mvc.support
Modifier and TypeMethodDescriptionprotected ModelAndView
DefaultHandlerExceptionResolver.handleServletRequestBindingException
(ServletRequestBindingException ex, HttpServletRequest request, HttpServletResponse response, Object handler) Handle the case when an unrecoverable binding exception occurs - e.g.