org.springframework.web.bind
Class ServletRequestUtils.BooleanParser

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

private static class ServletRequestUtils.BooleanParser
extends ServletRequestUtils.ParameterParser<java.lang.Boolean>


Constructor Summary
private ServletRequestUtils.BooleanParser()
           
 
Method Summary
protected  java.lang.Boolean doParse(java.lang.String parameter)
           
protected  java.lang.String getType()
           
 boolean parseBoolean(java.lang.String name, java.lang.String parameter)
           
 boolean[] parseBooleans(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.BooleanParser

private ServletRequestUtils.BooleanParser()
Method Detail

getType

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

doParse

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

parseBoolean

public boolean parseBoolean(java.lang.String name,
                            java.lang.String parameter)
                     throws ServletRequestBindingException
Throws:
ServletRequestBindingException

parseBooleans

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