public class IntegerParameter extends HTTPParameter
Constructor and Description |
---|
IntegerParameter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getValue() |
int[] |
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
|
getParameterName, initializeRaw, initializeRaw, setParameterName
public IntegerParameter()
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 int[] getValues()
public java.lang.Integer 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 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.