de.smartics.ci.comm
Class CiSystem

Package class diagram package CiSystem
java.lang.Object
  extended by de.smartics.ci.comm.CiSystem

public final class CiSystem
     
     
extends Object

The ci system, the target of commands.


Constructor Summary
CiSystem(HttpClient client, String url)
          Default constructor.
CiSystem(String url)
          Convenience constructor that creates the HTTP client on-the-fly.
 
Method Summary
 int execute(HttpMethod method)
          Executes the given method on the target.
 HttpClient getClient()
          Returns the HTTP client to use.
 String getUrl()
          Returns the URL to the target.
 String toString()
          Returns the string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CiSystem

public CiSystem(String url)
Convenience constructor that creates the HTTP client on-the-fly.

Parameters:
url - the URL to the target.

CiSystem

public CiSystem(HttpClient client,
                String url)
Default constructor.

Parameters:
client - the HTTP client to use.
url - the URL to the target.
Method Detail

getUrl

public String getUrl()
Returns the URL to the target.

Returns:
the URL to the target.

getClient

public HttpClient getClient()
Returns the HTTP client to use.

Returns:
the HTTP client to use.

toString

public String toString()
Returns the string representation of the object.

Overrides:
toString in class Object
Returns:
the string representation of the object.

execute

public int execute(HttpMethod method)
            throws CommandException
Executes the given method on the target.

Parameters:
method - the method to execute.
Returns:
the return code of the method.
Throws:
CommandException - on any problem executing the command on the target.


Copyright © 2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.