net.sweetohm.ant.server
Class Client

java.lang.Object
  extended by net.sweetohm.ant.server.Client

public class Client
extends java.lang.Object

Ant server test client. You may use this example to integrate client in in your Java source code.

Version:
1.0
Author:
Michel CASABIANCA

Field Summary
(package private)  java.lang.String command
          The command to send to the server
(package private)  java.lang.String host
          The host of the running Ant server
(package private)  int port
          The port of the running Ant server
 
Constructor Summary
Client(java.lang.String[] args)
          Constructor for the Client.
 
Method Summary
static void main(java.lang.String[] args)
          Method main.
(package private)  void run()
          Method run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

host

java.lang.String host
The host of the running Ant server


port

int port
The port of the running Ant server


command

java.lang.String command
The command to send to the server

Constructor Detail

Client

public Client(java.lang.String[] args)
Constructor for the Client.

Parameters:
args - Commend line arguments.
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Method main.

Parameters:
args - The command line arguments.
Throws:
java.lang.Exception - If problem occurs.

run

void run()
   throws java.lang.Exception
Method run. The body of the client.

Throws:
java.lang.Exception - If a problem occurs.