org.springframework.web.bind
Class ServletRequestUtils.DoubleParser

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

private static class ServletRequestUtils.DoubleParser
extends ServletRequestUtils.ParameterParser<java.lang.Double>


Constructor Summary
private ServletRequestUtils.DoubleParser()
           
 
Method Summary
protected  java.lang.Double doParse(java.lang.String parameter)
           
protected  java.lang.String getType()
           
 double parseDouble(java.lang.String name, java.lang.String parameter)
           
 double[] parseDoubles(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.DoubleParser

private ServletRequestUtils.DoubleParser()
Method Detail

getType

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

doParse

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

parseDouble

public double parseDouble(java.lang.String name,
                          java.lang.String parameter)
                   throws ServletRequestBindingException
Throws:
ServletRequestBindingException

parseDoubles

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