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.core.api.dto.RepositoryObject doImport(org.apache.commons.httpclient.HttpClient httpClient, 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.core.api.dto.RepositoryObject extract(org.apache.commons.httpclient.methods.PostMethod 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.core.api.dto.RepositoryObject doImport(org.apache.commons.httpclient.HttpClient httpClient,
                                                                     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:
httpClient -
packageToImport -
Returns:
Throws:
java.io.IOException

extract

protected com.xebialabs.deployit.core.api.dto.RepositoryObject extract(org.apache.commons.httpclient.methods.PostMethod postMethod)
                                                                throws javax.xml.bind.JAXBException,
                                                                       java.io.IOException
Throws:
javax.xml.bind.JAXBException
java.io.IOException