public class BooleanParameter extends HTTPParameter
Constructor and Description |
---|
BooleanParameter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getValue() |
boolean[] |
getValues() |
boolean |
hasValues() |
void |
initialize(java.io.InputStream stream)
Initialize this parameter based on input stream
Override this method if you want to accept HTTP Body data.
|
void |
initialize(java.util.List<java.lang.String> parameterValues)
Initialize this parameter based on the given parameter values
|
void |
initialize(java.lang.String parameterValue)
Initialize this parameter based on the given parameter value
|
boolean |
isTrue() |
static boolean |
toBoolean(java.lang.String s) |
getParameterName, initializeRaw, initializeRaw, setParameterName
public BooleanParameter()
public void initialize(java.util.List<java.lang.String> parameterValues) throws java.lang.IllegalArgumentException
HTTPParameter
initialize
in class HTTPParameter
parameterValues
- can NOT be nulljava.lang.IllegalArgumentException
- on bad input datapublic boolean[] getValues()
public java.lang.Boolean getValue()
getValue
in class HTTPParameter
public boolean hasValues()
hasValues
in class HTTPParameter
public void initialize(java.lang.String parameterValue) throws java.lang.IllegalArgumentException
HTTPParameter
initialize
in class HTTPParameter
parameterValue
- can be nulljava.lang.IllegalArgumentException
- on bad input datapublic boolean isTrue()
public static boolean toBoolean(java.lang.String s)
s
- public void initialize(java.io.InputStream stream) throws java.lang.IllegalArgumentException
HTTPParameter
initialize
in class HTTPParameter
stream
- can be nulljava.lang.IllegalArgumentException
- on bad input dataCopyright © 2015 Tampere University of Technology, Pori Department.