org.springframework.web.bind
Class ServletRequestUtils.IntParser

java.lang.Object
  extended by org.springframework.web.bind.ServletRequestUtils.ParameterParser<java.lang.Integer>
      extended by org.springframework.web.bind.ServletRequestUtils.IntParser
Enclosing class:
ServletRequestUtils

private static class ServletRequestUtils.IntParser
extends ServletRequestUtils.ParameterParser<java.lang.Integer>


Constructor Summary
private ServletRequestUtils.IntParser()
           
 
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 org.springframework.web.bind.ServletRequestUtils.ParameterParser
parse, validateRequiredParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletRequestUtils.IntParser

private ServletRequestUtils.IntParser()
Method Detail

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