| java.lang.Object com.sun.portal.admin.server.mbeans.PSResource com.sun.portal.fabric.mbeans.UploadDownloadFileManager
UploadDownloadFileManager | public class UploadDownloadFileManager extends PSResource implements UploadDownloadFileManagerMBean(Code) | | This class implements UploadDownloadFileManagerMBean interface and implements
methods to upload and download files.
|
UploadDownloadFileManager | public UploadDownloadFileManager()(Code) | | |
cleanUp | public void cleanUp(String Id)(Code) | | This method deletes temporary file created while upload.
Also deletes this id entry from hash table
Parameters: Id - of the file as generated in initiateFileUpload or filedownloaded |
downloadBytes | public byte[] downloadBytes(String downloadId, Integer downloadSize) throws PSMBeanException(Code) | | This method reads downloadSize no. of bytes from the file whose object id
is passed as downloadId
Parameters: downloadId - : Id of the file as generated in initiateFileDownloaddownloadSize : No. of bytes to download |
initiateFileDownload | public Object[] initiateFileDownload(String fileName) throws PSMBeanException(Code) | | This method prepares for file download.
Sets the appropriate values for this file in DownloadInfo class
object.
Parameters: fileName - with full path on the filesystem. Object array with first element as fileID and second element as fileSize |
initiateFileUpload | public String[] initiateFileUpload(String fileName, Long fileSize) throws PSMBeanException(Code) | | This method prepares for file upload.
Sets the appropriate values for this file in UploadInfo class object.
Parameters: fileName - without path as in file.getName() String array with first element as fileID and second element asfilename with complete path as generated on this file system. |
uploadBytes | public void uploadBytes(String uploadId, byte[] bytesToUpload) throws PSMBeanException(Code) | | This method writes bytesToUpload to the file whose objectId is passed as uploadId.
Parameters: uploadId - : Id of the file as generated in initiateFileUpload |
Methods inherited from com.sun.portal.admin.server.mbeans.PSResource | public String getAttributeValue(String type, String name) throws PSMBeanException(Code)(Java Doc) public Set getAttributeValues(String type, String name) throws PSMBeanException(Code)(Java Doc) public String getDomainID()(Code)(Java Doc) public String getID()(Code)(Java Doc) public Map getMultipleAttributeValues(String type, Set names) throws PSMBeanException(Code)(Java Doc) public PSConfigContext getPSConfigContext()(Code)(Java Doc) public List getPath()(Code)(Java Doc) public PortalDomainContext getPortalDomainContext()(Code)(Java Doc) public String getStackTrace(Throwable t)(Code)(Java Doc) public void init(PSConfigContext cc, PortalDomainContext pdc, List path)(Code)(Java Doc) public Object invokeRemoteOperation(String host, ObjectName mBeanName, String operationName, Object[] params, String[] signature) throws PSMBeanException(Code)(Java Doc) protected boolean isResourceAvailable(String type, String id) throws PSMBeanException(Code)(Java Doc) public void setAttributeValue(String type, String name, String value) throws PSMBeanException(Code)(Java Doc) public void setAttributeValues(String type, String name, Set values) throws PSMBeanException(Code)(Java Doc) public void setMultipleAttributeValues(String type, Map attributes) throws PSMBeanException(Code)(Java Doc)
|
|
|