org.springframework.web.bind
Class ServletRequestUtils.ParameterParser<T>
java.lang.Object
org.springframework.web.bind.ServletRequestUtils.ParameterParser<T>
- Direct Known Subclasses:
- ServletRequestUtils.BooleanParser, ServletRequestUtils.DoubleParser, ServletRequestUtils.FloatParser, ServletRequestUtils.IntParser, ServletRequestUtils.LongParser, ServletRequestUtils.StringParser
- Enclosing class:
- ServletRequestUtils
private abstract static class ServletRequestUtils.ParameterParser<T>
- extends java.lang.Object
Method Summary |
protected abstract T |
doParse(java.lang.String parameter)
|
protected abstract java.lang.String |
getType()
|
protected T |
parse(java.lang.String name,
java.lang.String parameter)
|
protected void |
validateRequiredParameter(java.lang.String name,
java.lang.Object parameter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletRequestUtils.ParameterParser
private ServletRequestUtils.ParameterParser()
parse
protected final T parse(java.lang.String name,
java.lang.String parameter)
throws ServletRequestBindingException
- Throws:
ServletRequestBindingException
validateRequiredParameter
protected final void validateRequiredParameter(java.lang.String name,
java.lang.Object parameter)
throws ServletRequestBindingException
- Throws:
ServletRequestBindingException
getType
protected abstract java.lang.String getType()
doParse
protected abstract T doParse(java.lang.String parameter)
throws java.lang.NumberFormatException
- Throws:
java.lang.NumberFormatException