com.xebialabs.deployit.cli.api.internal
Class ImportHelper

java.lang.Object
  extended by com.xebialabs.deployit.cli.api.internal.ImportHelper

public class ImportHelper
extends java.lang.Object

Helper that can both upload packages from the client and import packages on the server.


Constructor Summary
ImportHelper()
           
 
Method Summary
 com.xebialabs.deployit.plugin.api.udm.ConfigurationItem doImport(java.lang.String baseUri, java.lang.String packageToImport)
          Check whether the packageToImport parameter refers to a file by checking for its existence.
protected  com.xebialabs.deployit.plugin.api.udm.ConfigurationItem extract(org.apache.http.HttpResponse postMethod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportHelper

public ImportHelper()
Method Detail

doImport

public com.xebialabs.deployit.plugin.api.udm.ConfigurationItem doImport(java.lang.String baseUri,
                                                                        java.lang.String packageToImport)
Check whether the packageToImport parameter refers to a file by checking for its existence. If it is not a file, it should be a package in the importablePackages directory on the server, and should be importable from there.

Parameters:
packageToImport -
Returns:
Throws:
java.io.IOException

extract

protected com.xebialabs.deployit.plugin.api.udm.ConfigurationItem extract(org.apache.http.HttpResponse postMethod)
                                                                   throws java.io.IOException
Throws:
java.io.IOException