public abstract class HTTPParameter extends java.lang.Object
Constructor and Description |
---|
HTTPParameter()
The inherited class should have no-args default constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getParameterName() |
abstract java.lang.Object |
getValue() |
abstract boolean |
hasValues() |
void |
initialize(java.io.InputStream parameterValue)
Initialize this parameter based on input stream
Override this method if you want to accept HTTP Body data.
|
abstract void |
initialize(java.util.List<java.lang.String> parameterValues)
Initialize this parameter based on the given parameter values
|
abstract void |
initialize(java.lang.String parameterValue)
Initialize this parameter based on the given parameter value
|
void |
initializeRaw(java.util.List<java.lang.String> parameterValues)
Initialize the parameter by raw URL encoded string list.
|
void |
initializeRaw(java.lang.String parameterValue)
Initialize the parameter by raw URL encoded string.
|
void |
setParameterName(java.lang.String parameterName) |
public HTTPParameter()
public void initializeRaw(java.lang.String parameterValue) throws java.lang.IllegalArgumentException
parameterValue
- java.lang.IllegalArgumentException
public void initializeRaw(java.util.List<java.lang.String> parameterValues) throws java.lang.IllegalArgumentException
parameterValues
- java.lang.IllegalArgumentException
public abstract void initialize(java.util.List<java.lang.String> parameterValues) throws java.lang.IllegalArgumentException
parameterValues
- can NOT be nulljava.lang.IllegalArgumentException
- on bad input datapublic abstract void initialize(java.lang.String parameterValue) throws java.lang.IllegalArgumentException
parameterValue
- can be nulljava.lang.IllegalArgumentException
- on bad input datapublic void initialize(java.io.InputStream parameterValue) throws java.lang.IllegalArgumentException
parameterValue
- can be nulljava.lang.IllegalArgumentException
- on bad input datapublic abstract boolean hasValues()
public abstract java.lang.Object getValue()
public java.lang.String getParameterName()
public void setParameterName(java.lang.String parameterName)
parameterName
- the parameterName to setCopyright © 2015 Tampere University of Technology, Pori Department.