public class UnsatisfiedServletRequestParameterException extends ServletRequestBindingException
ServletRequestBindingException
subclass that indicates an unsatisfied
parameter condition, as typically expressed using an @RequestMapping
annotation at the @Controller
type level.RequestMapping.params()
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.String[]> |
actualParams |
private java.util.List<java.lang.String[]> |
paramConditions |
Constructor and Description |
---|
UnsatisfiedServletRequestParameterException(java.util.List<java.lang.String[]> paramConditions,
java.util.Map<java.lang.String,java.lang.String[]> actualParams)
Create a new UnsatisfiedServletRequestParameterException.
|
UnsatisfiedServletRequestParameterException(java.lang.String[] paramConditions,
java.util.Map<java.lang.String,java.lang.String[]> actualParams)
Create a new UnsatisfiedServletRequestParameterException.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String[]> |
getActualParams()
Return the actual parameter Map associated with the ServletRequest.
|
java.lang.String |
getMessage()
Return the detail message, including the message from the nested exception
if there is one.
|
java.util.List<java.lang.String[]> |
getParamConditionGroups()
Return all parameter condition groups that have been violated.
|
java.lang.String[] |
getParamConditions()
Return the parameter conditions that have been violated or the first group
in case of multiple groups.
|
private static java.lang.String |
requestParameterMapToString(java.util.Map<java.lang.String,java.lang.String[]> actualParams) |
private final java.util.List<java.lang.String[]> paramConditions
private final java.util.Map<java.lang.String,java.lang.String[]> actualParams
public UnsatisfiedServletRequestParameterException(java.lang.String[] paramConditions, java.util.Map<java.lang.String,java.lang.String[]> actualParams)
paramConditions
- the parameter conditions that have been violatedactualParams
- the actual parameter Map associated with the ServletRequestpublic UnsatisfiedServletRequestParameterException(java.util.List<java.lang.String[]> paramConditions, java.util.Map<java.lang.String,java.lang.String[]> actualParams)
paramConditions
- all sets of parameter conditions that have been violatedactualParams
- the actual parameter Map associated with the ServletRequestpublic java.lang.String getMessage()
NestedServletException
getMessage
in class NestedServletException
private static java.lang.String requestParameterMapToString(java.util.Map<java.lang.String,java.lang.String[]> actualParams)
public final java.lang.String[] getParamConditions()
RequestMapping.params()
public final java.util.List<java.lang.String[]> getParamConditionGroups()
RequestMapping.params()
public final java.util.Map<java.lang.String,java.lang.String[]> getActualParams()
javax.servlet.ServletRequest#getParameterMap()