| org.objectweb.jonas.webapp.jonasadmin.deploy.UploadForm
UploadForm | public class UploadForm extends ActionForm (Code) | | This class is a placeholder for form values. In a multipart request, files are represented by
set and get methods that use the class org.apache.struts.upload.FormFile, an interface with
basic methods to retrieve file information. The actual structure of the FormFile is dependant
on the underlying impelementation of multipart request handling. The default implementation
that struts uses is org.apache.struts.upload.CommonsMultipartRequestHandler.
version: $Rev: 7486 $ $Date: 2005-10-07 22:30:10 +0000 (Fri, 07 Oct 2005) $ |
Method Summary | |
public boolean | getIsConfigurable() Return if the current deployment type is configurable. | public boolean | getIsDomain() Return if the action is a domain management operation. | public FormFile | getUploadedFile() | public boolean | isOverwrite() | public void | setIsConfigurable(boolean isConfigurable) Sets if the current deployment type is configurable. | public void | setIsDomain(boolean isDomain) Sets if the action is a domain management operation. | public void | setOverwrite(boolean overwrite) | public void | setUploadedFile(FormFile uploadedFile) | public ActionErrors | validate(ActionMapping mapping, HttpServletRequest request) Check to make sure the client hasn't exceeded the maximum allowed upload size inside of this
validate method. |
getIsConfigurable | public boolean getIsConfigurable()(Code) | | Return if the current deployment type is configurable.
if the current deployment type is configurable. |
getIsDomain | public boolean getIsDomain()(Code) | | Return if the action is a domain management operation.
if the action is a domain management operation. |
getUploadedFile | public FormFile getUploadedFile()(Code) | | a representation of the file the user has uploaded |
isOverwrite | public boolean isOverwrite()(Code) | | true if the file will be overwritten |
setIsConfigurable | public void setIsConfigurable(boolean isConfigurable)(Code) | | Sets if the current deployment type is configurable.
Parameters: isDomain - if current deployment type is configurable. |
setIsDomain | public void setIsDomain(boolean isDomain)(Code) | | Sets if the action is a domain management operation.
Parameters: isDomain - if the action is a domain management operation. |
setOverwrite | public void setOverwrite(boolean overwrite)(Code) | | Replace the existing file ?
Parameters: overwrite - true/false |
setUploadedFile | public void setUploadedFile(FormFile uploadedFile)(Code) | | Set a representation of the file the user has uploaded
Parameters: uploadedFile - the file uploaded |
validate | public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)(Code) | | Check to make sure the client hasn't exceeded the maximum allowed upload size inside of this
validate method.
Parameters: mapping - the mapping used to select this instance Parameters: request - the servlet request we are processing Errors if it fails |
|
|