org.springframework.web.bind
Class ServletRequestUtils.LongParser

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

private static class ServletRequestUtils.LongParser
extends ServletRequestUtils.ParameterParser<java.lang.Long>


Constructor Summary
private ServletRequestUtils.LongParser()
           
 
Method Summary
protected  java.lang.Long doParse(java.lang.String parameter)
           
protected  java.lang.String getType()
           
 long parseLong(java.lang.String name, java.lang.String parameter)
           
 long[] parseLongs(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.LongParser

private ServletRequestUtils.LongParser()
Method Detail

getType

protected java.lang.String getType()
Specified by:
getType in class ServletRequestUtils.ParameterParser<java.lang.Long>

doParse

protected java.lang.Long doParse(java.lang.String parameter)
                          throws java.lang.NumberFormatException
Specified by:
doParse in class ServletRequestUtils.ParameterParser<java.lang.Long>
Throws:
java.lang.NumberFormatException

parseLong

public long parseLong(java.lang.String name,
                      java.lang.String parameter)
               throws ServletRequestBindingException
Throws:
ServletRequestBindingException

parseLongs

public long[] parseLongs(java.lang.String name,
                         java.lang.String[] values)
                  throws ServletRequestBindingException
Throws:
ServletRequestBindingException