public abstract class IlvServletParameterHandler extends Object
addParameter
method to add customized parameters or use
removeParameter
to remove parameter
for the specific request.Constructor and Description |
---|
IlvServletParameterHandler()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(String name)
Adds the specific request parameter for requested name.
|
void |
addParameter(String name,
boolean required)
Adds the specific request parameter for requested name.
|
void |
addParameter(String name,
boolean required,
String value)
Adds the specific request parameter for requested name.
|
void |
addParameter(String name,
boolean required,
String value,
boolean compared)
Adds the specific request parameter for requested name.
|
void |
addParameter(String name,
boolean required,
String value,
boolean compared,
IlvRequestParameter.Comparator comparator)
Adds the specific request parameter for requested name.
|
Set<String> |
getAllParameterNames()
Returns the set of all parameter name.
|
Set<IlvRequestParameter> |
getRequetsParameter(String name)
Returns the set of specific request parameters
IlvRequestParameter
from requested parameter name. |
Set<String> |
getRequiredParameterNames()
Returns the set of all required parameter name.
|
boolean |
isEmpty()
Returns the parameter set status for the specific request.
|
void |
removeParameter(String name)
Removes the specific request parameter for requested name.
|
public IlvServletParameterHandler()
public void addParameter(String name)
name
- the parameter namepublic void addParameter(String name, boolean required)
name
- the parameter name.required
- Whether the parameter is required.public void addParameter(String name, boolean required, String value)
name
- the parameter name.required
- Whether the parameter is required.value
- The default parameter value.public void addParameter(String name, boolean required, String value, boolean compared)
name
- the parameter name.required
- Whether the parameter is required.value
- The default parameter value.compared
- Whether the parameter value should be compared with default value.public void addParameter(String name, boolean required, String value, boolean compared, IlvRequestParameter.Comparator comparator)
name
- the parameter name.required
- Whether the parameter is required.value
- The default parameter value.compared
- Whether the parameter value should be compared with default value.comparator
- which kind of operation needed for parameter value comparison
if compared is true
.public void removeParameter(String name)
name
- the parameter name.public Set<IlvRequestParameter> getRequetsParameter(String name)
IlvRequestParameter
from requested parameter name.name
- the parameter name.public boolean isEmpty()
true
if there is no parameter related for the specific request,
or false
othewise.public Set<String> getAllParameterNames()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.