com.xebialabs.deployit.maven.cli
Class ImportHelper

java.lang.Object
  extended by com.xebialabs.deployit.maven.cli.ImportHelper

public class ImportHelper
extends Object


Constructor Summary
ImportHelper()
           
 
Method Summary
 com.xebialabs.deployit.core.api.dto.RepositoryObject doImport(org.apache.commons.httpclient.HttpClient httpClient, String baseUri, 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,
                                                                     String baseUri,
                                                                     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:
IOException

extract

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


Copyright © 2012. All Rights Reserved.