Package | Description |
---|---|
org.springframework.web.bind |
Provides web-specific data binding functionality.
|
org.springframework.web.method.annotation |
Support classes for annotation-based handler method processing.
|
org.springframework.web.servlet.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package. |
org.springframework.web.servlet.mvc.support |
Support package for MVC controllers.
|
Modifier and Type | Class and Description |
---|---|
class |
MissingPathVariableException
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 |
MissingServletRequestParameterException
ServletRequestBindingException subclass that indicates a missing parameter. |
class |
UnsatisfiedServletRequestParameterException
ServletRequestBindingException subclass that indicates an unsatisfied
parameter condition, as typically expressed using an @RequestMapping
annotation at the @Controller type level. |
Modifier and Type | Method and Description |
---|---|
void |
ServletRequestDataBinder.closeNoCatch()
Treats errors as fatal.
|
static java.lang.Boolean |
ServletRequestUtils.getBooleanParameter(ServletRequest request,
java.lang.String name)
Get a Boolean parameter, or
null if not present. |
static java.lang.Double |
ServletRequestUtils.getDoubleParameter(ServletRequest request,
java.lang.String name)
Get a Double parameter, or
null if not present. |
static java.lang.Float |
ServletRequestUtils.getFloatParameter(ServletRequest request,
java.lang.String name)
Get a Float parameter, or
null if not present. |
static java.lang.Integer |
ServletRequestUtils.getIntParameter(ServletRequest request,
java.lang.String name)
Get an Integer parameter, or
null if not present. |
static java.lang.Long |
ServletRequestUtils.getLongParameter(ServletRequest request,
java.lang.String name)
Get a Long parameter, or
null if not present. |
static boolean |
ServletRequestUtils.getRequiredBooleanParameter(ServletRequest request,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.String name)
Get an array of long parameters, throwing an exception if not found or one is not a number.
|
static java.lang.String |
ServletRequestUtils.getRequiredStringParameter(ServletRequest request,
java.lang.String name)
Get a String parameter, throwing an exception if it isn't found.
|
static java.lang.String[] |
ServletRequestUtils.getRequiredStringParameters(ServletRequest request,
java.lang.String name)
Get an array of String parameters, throwing an exception if not found.
|
static java.lang.String |
ServletRequestUtils.getStringParameter(ServletRequest request,
java.lang.String name)
Get a String parameter, or
null if not present. |
Modifier and Type | Method and Description |
---|---|
protected void |
RequestHeaderMethodArgumentResolver.handleMissingValue(java.lang.String name,
MethodParameter parameter) |
protected void |
AbstractCookieValueMethodArgumentResolver.handleMissingValue(java.lang.String name,
MethodParameter parameter) |
Modifier and Type | Method and Description |
---|---|
protected ResponseEntity<java.lang.Object> |
ResponseEntityExceptionHandler.handleServletRequestBindingException(ServletRequestBindingException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for ServletRequestBindingException.
|
Modifier and Type | Method and Description |
---|---|
protected void |
MatrixVariableMethodArgumentResolver.handleMissingValue(java.lang.String name,
MethodParameter parameter) |
protected void |
PathVariableMethodArgumentResolver.handleMissingValue(java.lang.String name,
MethodParameter parameter) |
Modifier and Type | Method and Description |
---|---|
protected ModelAndView |
DefaultHandlerExceptionResolver.handleServletRequestBindingException(ServletRequestBindingException ex,
HttpServletRequest request,
HttpServletResponse response,
java.lang.Object handler)
Handle the case when an unrecoverable binding exception occurs - e.g.
|