public class StringParameter extends HTTPParameter
Constructor and Description |
---|
StringParameter()
create empty, non-initializes StringParameter
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
java.util.List<java.lang.String> |
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 StringParameter()
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 java.util.List<java.lang.String> getValues()
public java.lang.String 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.