public class StartRequest extends Object
Constructor and Description |
---|
StartRequest() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Cleans up the temporary data associated with this request.
|
InputStream |
getFile(String name,
boolean required)
Gets the inputstream of a file with key name
name . |
String |
getParameter(String name,
boolean required)
Gets a parameters from the request.
|
PropertyTable |
getParameters() |
PropertyTable |
getProperties(String name,
boolean required)
Gets the Properties associated with a key name.
|
List<PropertyTable> |
getPropertiesList(String name,
boolean required)
Gets a list of Properties associated with a key name.
|
List<String> |
getStringList(String name,
boolean required)
Gets list of string values.
|
boolean |
isSave() |
StartRequest |
parse(javax.servlet.http.HttpServletRequest request)
Parses the servlet request.
|
void |
setParameters(PropertyTable parameters)
Set the parameters of the request.
|
void |
setSave(boolean save)
Sets the save flag.
|
public StartRequest parse(javax.servlet.http.HttpServletRequest request)
request
- The servlet request.public String getParameter(String name, boolean required)
name
- The key namerequired
- If required true
, otherwise false
public PropertyTable getParameters()
public void setParameters(PropertyTable parameters)
parameters
- The parameters of the request.public PropertyTable getProperties(String name, boolean required)
name
- The key name.required
- If required true
, otherwise false
public List<PropertyTable> getPropertiesList(String name, boolean required)
name
- The key name.required
- If required true
, otherwise false
public List<String> getStringList(String name, boolean required)
name
- The key name.required
- If required true
, otherwise false
public InputStream getFile(String name, boolean required)
name
.name
- The key name.required
- If required true
, otherwise false
public void cleanup()
public boolean isSave()
public void setSave(boolean save)
save
- True if request needs to be savedCopyright © 2004–2018 Github. All rights reserved.