com.xebialabs.deployit.booter.remote.client
Class DeployitRemoteClient

java.lang.Object
  extended by com.xebialabs.deployit.booter.remote.client.DeployitRemoteClient

public class DeployitRemoteClient
extends java.lang.Object

A thin wrapper to close a gap between REST api functionality, provided out of the box by proxies and deployit clients needs.


Constructor Summary
DeployitRemoteClient(DeployitCommunicator communicator)
           
 
Method Summary
 com.xebialabs.deployit.plugin.api.udm.ConfigurationItem importPackage(java.io.File file)
          Imports a package into Deployit bypassing resteasy.
 com.xebialabs.deployit.plugin.api.udm.ConfigurationItem importPackage(java.lang.String path)
          Imports a package into Deployit bypassing resteasy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeployitRemoteClient

public DeployitRemoteClient(DeployitCommunicator communicator)
Method Detail

importPackage

public com.xebialabs.deployit.plugin.api.udm.ConfigurationItem importPackage(java.lang.String path)
Imports a package into Deployit bypassing resteasy.

Parameters:
path - Either URL or local path, or path on Deployit server
Returns:
Configuration item as a result of import

importPackage

public com.xebialabs.deployit.plugin.api.udm.ConfigurationItem importPackage(java.io.File file)
Imports a package into Deployit bypassing resteasy. This method is preferably to use over importPackage(String) when you know that you are not going to deal with remote URLs.

Parameters:
file - either local file, or relative file path on Deployit server
Returns:
Configuration item as a result of import