Created
October 10, 2013 13:18
-
-
Save tsegismont/6918179 to your computer and use it in GitHub Desktop.
org.rhq.bindings.util.ScriptUtil#uploadContent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public String uploadContent(String filename) { | |
| if (remoteClient == null) { | |
| throw new IllegalStateException("The uploadContent method requires a connection to the RHQ server."); | |
| } | |
| ContentUploader contentUploader = new ContentUploader(remoteClient.getProxy(ContentManagerRemote.class)); | |
| return contentUploader.upload(filename); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment