Buju 0.4

biz.bbeans.bujutest
Class BTest

java.lang.Object
  extended bybiz.bbeans.bujutest.BTest

public class BTest
extends Object

Interactive test client for the Buju server. The Buju server should already be running.


Constructor Summary
BTest(String host, int port, boolean noSSL)
          Create a Buju server test client.
 
Method Summary
 void close()
          Close any unclosed socket.
 String eval(String source)
          Evaluate the Java source line.
protected  void finalize()
          Closes any unclosed socket by calling close().
 String login(String user, char[] passwd)
          Login to the Buju server.
static void main(String[] args)
          Character console interface for interactive test.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BTest

public BTest(String host,
             int port,
             boolean noSSL)
      throws UnknownHostException,
             IOException
Create a Buju server test client. The Buju server should already be running.

Parameters:
host - The host for the Buju server.
port - The Buju server port.
noSSL - If true, do not use SSL.
Throws:
UnknownHostException - If Buju server host can't be found.
IOException - If socket IO streams have a problem.
Method Detail

login

public String login(String user,
                    char[] passwd)
             throws IOException,
                    Exception
Login to the Buju server.

Parameters:
user - The user ID.
passwd - The password.
Returns:
The result of login.
Throws:
IOException - If socket IO streams have a problem.
Exception - If the login failed.

eval

public String eval(String source)
            throws IOException,
                   Exception
Evaluate the Java source line.

Parameters:
source - The Java source line.
Returns:
The evaluation results.
Throws:
IOException - If socket IO streams have a problem.
Exception - If the evaluation failed.

close

public void close()
           throws IOException
Close any unclosed socket. Called on finalize().

Throws:
IOException - If the socket can't be closed.

finalize

protected void finalize()
                 throws Throwable
Closes any unclosed socket by calling close(). Overrides and finally calls Object.finalize().

Throws:
Throwable

main

public static void main(String[] args)
Character console interface for interactive test. Usage: biz.bbeans.bujutest.BTest


Buju 0.4