Class StartRequest
- java.lang.Object
-
- org.codehaus.cargo.daemon.request.StartRequest
-
public class StartRequest extends Object
Start request for a container.
-
-
Constructor Summary
Constructors Constructor Description StartRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()Cleans up the temporary data associated with this request.InputStreamgetFile(String name, boolean required)Gets the inputstream of a file with key namename.StringgetParameter(String name, boolean required)Gets a parameters from the request.PropertyTablegetParameters()PropertyTablegetProperties(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.booleanisSave()StartRequestparse(javax.servlet.http.HttpServletRequest request)Parses the servlet request.voidsetParameters(PropertyTable parameters)Set the parameters of the request.voidsetSave(boolean save)Sets the save flag.
-
-
-
Method Detail
-
parse
public StartRequest parse(javax.servlet.http.HttpServletRequest request)
Parses the servlet request.- Parameters:
request- The servlet request.- Returns:
- the StartRequest
-
getParameter
public String getParameter(String name, boolean required)
Gets a parameters from the request.- Parameters:
name- The key namerequired- If requiredtrue, otherwisefalse- Returns:
- the value for the key name
-
getParameters
public PropertyTable getParameters()
- Returns:
- The parameters of the request.
-
setParameters
public void setParameters(PropertyTable parameters)
Set the parameters of the request.- Parameters:
parameters- The parameters of the request.
-
getProperties
public PropertyTable getProperties(String name, boolean required)
Gets the Properties associated with a key name.- Parameters:
name- The key name.required- If requiredtrue, otherwisefalse- Returns:
- the properties
-
getPropertiesList
public List<PropertyTable> getPropertiesList(String name, boolean required)
Gets a list of Properties associated with a key name.- Parameters:
name- The key name.required- If requiredtrue, otherwisefalse- Returns:
- the list of properties.
-
getStringList
public List<String> getStringList(String name, boolean required)
Gets list of string values.- Parameters:
name- The key name.required- If requiredtrue, otherwisefalse- Returns:
- the list of string values.
-
getFile
public InputStream getFile(String name, boolean required)
Gets the inputstream of a file with key namename.- Parameters:
name- The key name.required- If requiredtrue, otherwisefalse- Returns:
- the inputstream of the file
-
cleanup
public void cleanup()
Cleans up the temporary data associated with this request.
-
isSave
public boolean isSave()
- Returns:
- if this request needs to be saved
-
setSave
public void setSave(boolean save)
Sets the save flag.- Parameters:
save- True if request needs to be saved
-
-