public class UploadToStreamCmdImpl extends ControllerCommandImpl implements UploadToStreamCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright.
|
Constructor and Description |
---|
UploadToStreamCmdImpl() |
Modifier and Type | Method and Description |
---|---|
long | getAttachmentOwner()
This method gets the creator of the uploaded attachment, that is, the user who logs on to the store.
|
java.io.InputStream | getAttachmentStream()
This method gets the attachment stream from when the upload is completed.
|
protected java.lang.String | getContentType()
This method gets the contentType of the uploaded attachment.
|
java.lang.String | getErrorURL()
This method gets the errorURL where the user should be redirected when an error occurs during upload.
|
protected java.lang.String | getFileExtension()
This method gets the file extension.
|
protected java.lang.String | getFileName_NoExt()
This method gets the filename with no extension.
|
java.lang.String | getFileName()
This method gets the fileName of the uploaded file.
|
long | getFileSize()
This method gets the filesize of the uploaded file.
|
java.lang.String | getRootPath()
This method gets the rootPath where the file should be uploaded.
|
protected java.lang.String | getStoreName()
This method gets the storeName from the command context.
|
java.lang.String | getUrl()
This method gets the URL to be returned when the upload is completed.
|
void | performExecute()
This method contains the main business logic of this command.
|
void | setErrorURL(java.lang.String errorURL)
This method sets the errorURL to be forwarded to when an error occurs during upload.
|
void | setRefCmd(java.lang.String name)
This method sets the refcmd of the command which extends this command.
|
void | setRequestProperties(TypedProperty reqParms)
This method sets the request properties.
|
void | setRootPath(java.lang.String path)
This method sets the rootPath where the file should be uploaded.
|
void | setUrl(java.lang.String returnURL)
This method sets the URL to be returned/redirected when the upload is completed.
|
void | validateParameters()
This method checks the validity of the parameters.
|
public static final java.lang.String COPYRIGHT
public java.io.InputStream getAttachmentStream()
public void setErrorURL(java.lang.String errorURL)
public void setRefCmd(java.lang.String name)
public void setUrl(java.lang.String returnURL)
protected java.lang.String getStoreName()
public java.lang.String getFileName()
public java.lang.String getUrl()
public java.lang.String getErrorURL()
public long getFileSize()
public long getAttachmentOwner()
public void setRootPath(java.lang.String path)
public java.lang.String getRootPath()
protected java.lang.String getContentType()
protected java.lang.String getFileName_NoExt()
protected java.lang.String getFileExtension()
public void setRequestProperties(TypedProperty reqParms) throws ECException
public void validateParameters() throws ECException
public void performExecute() throws ECException