org.springframework.web.bind
Class ServletRequestUtils.IntParser
java.lang.Object
org.springframework.web.bind.ServletRequestUtils.ParameterParser<java.lang.Integer>
org.springframework.web.bind.ServletRequestUtils.IntParser
- Enclosing class:
- ServletRequestUtils
private static class ServletRequestUtils.IntParser
- extends ServletRequestUtils.ParameterParser<java.lang.Integer>
Method Summary |
protected java.lang.Integer |
doParse(java.lang.String s)
|
protected java.lang.String |
getType()
|
int |
parseInt(java.lang.String name,
java.lang.String parameter)
|
int[] |
parseInts(java.lang.String name,
java.lang.String[] values)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletRequestUtils.IntParser
private ServletRequestUtils.IntParser()
getType
protected java.lang.String getType()
- Specified by:
getType
in class ServletRequestUtils.ParameterParser<java.lang.Integer>
doParse
protected java.lang.Integer doParse(java.lang.String s)
throws java.lang.NumberFormatException
- Specified by:
doParse
in class ServletRequestUtils.ParameterParser<java.lang.Integer>
- Throws:
java.lang.NumberFormatException
parseInt
public int parseInt(java.lang.String name,
java.lang.String parameter)
throws ServletRequestBindingException
- Throws:
ServletRequestBindingException
parseInts
public int[] parseInts(java.lang.String name,
java.lang.String[] values)
throws ServletRequestBindingException
- Throws:
ServletRequestBindingException