public class ContentUploader extends Object
| Constructor and Description |
|---|
ContentUploader(org.rhq.enterprise.server.content.ContentManagerRemote contentManager) |
public ContentUploader(org.rhq.enterprise.server.content.ContentManagerRemote contentManager)
public String upload(String filename)
filename.filename - absolute path of the file to uploadIllegalArgumentException - if filename is empty, if the file does not exist or if it is a
directoryContentManagerRemote.createTemporaryContentHandle(),
ContentManagerRemote.uploadContentFragment(String, byte[], int, int)public String upload(File file)
file - the file to uploadIllegalArgumentException - if file is null, if the file does not exist or if it is a directoryContentManagerRemote.createTemporaryContentHandle(),
ContentManagerRemote.uploadContentFragment(String, byte[], int, int)Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.