org.springframework.web.bind
Class ServletRequestUtils.BooleanParser
java.lang.Object
org.springframework.web.bind.ServletRequestUtils.ParameterParser<java.lang.Boolean>
org.springframework.web.bind.ServletRequestUtils.BooleanParser
- Enclosing class:
- ServletRequestUtils
private static class ServletRequestUtils.BooleanParser
- extends ServletRequestUtils.ParameterParser<java.lang.Boolean>
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletRequestUtils.BooleanParser
private ServletRequestUtils.BooleanParser()
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