|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.ci.comm.CiSystem
public final class CiSystem
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 |
---|
public CiSystem(String url)
url
- the URL to the target.
public CiSystem(HttpClient client, String url)
client
- the HTTP client to use.
url
- the URL to the target.
Method Detail |
---|
public String getUrl()
public HttpClient getClient()
public String toString()
toString
in class
Object
public int execute(HttpMethod method) throws CommandException
method
- the method to execute.
CommandException
- on any problem executing the command on the target.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |