Skip to content

Instantly share code, notes, and snippets.

@tsegismont
Created October 10, 2013 13:18
Show Gist options
  • Select an option

  • Save tsegismont/6918179 to your computer and use it in GitHub Desktop.

Select an option

Save tsegismont/6918179 to your computer and use it in GitHub Desktop.
org.rhq.bindings.util.ScriptUtil#uploadContent
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