|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.ActionForm org.objectweb.jonas.webapp.jonasadmin.deploy.UploadForm
public class UploadForm
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.
Field Summary |
---|
Fields inherited from class org.apache.struts.action.ActionForm |
---|
multipartRequestHandler, servlet |
Constructor Summary | |
---|---|
UploadForm()
|
Method Summary | |
---|---|
boolean |
getIsConfigurable()
Return if the current deployment type is configurable. |
boolean |
getIsDomain()
Return if the action is a domain management operation. |
org.apache.struts.upload.FormFile |
getUploadedFile()
|
boolean |
isOverwrite()
|
void |
setIsConfigurable(boolean isConfigurable)
Sets if the current deployment type is configurable. |
void |
setIsDomain(boolean isDomain)
Sets if the action is a domain management operation. |
void |
setOverwrite(boolean overwrite)
Replace the existing file ? |
void |
setUploadedFile(org.apache.struts.upload.FormFile uploadedFile)
Set a representation of the file the user has uploaded |
org.apache.struts.action.ActionErrors |
validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Check to make sure the client hasn't exceeded the maximum allowed upload size inside of this validate method. |
Methods inherited from class org.apache.struts.action.ActionForm |
---|
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UploadForm()
Method Detail |
---|
public boolean getIsDomain()
public void setIsDomain(boolean isDomain)
isDomain
- if the action is a domain management operation.public org.apache.struts.upload.FormFile getUploadedFile()
public void setUploadedFile(org.apache.struts.upload.FormFile uploadedFile)
uploadedFile
- the file uploadedpublic org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
validate
in class org.apache.struts.action.ActionForm
mapping
- the mapping used to select this instancerequest
- the servlet request we are processing
public boolean isOverwrite()
public void setOverwrite(boolean overwrite)
overwrite
- true/falsepublic boolean getIsConfigurable()
public void setIsConfigurable(boolean isConfigurable)
isDomain
- if current deployment type is configurable.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |