|
Buju 0.4 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object biz.bbeans.bujutest.BTest
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 |
public BTest(String host, int port, boolean noSSL) throws UnknownHostException, IOException
host
- The host for the Buju server.port
- The Buju server port.noSSL
- If true, do not use SSL.
UnknownHostException
- If Buju server host can't be found.
IOException
- If socket IO streams have a problem.Method Detail |
public String login(String user, char[] passwd) throws IOException, Exception
user
- The user ID.passwd
- The password.
IOException
- If socket IO streams have a problem.
Exception
- If the login failed.public String eval(String source) throws IOException, Exception
source
- The Java source line.
IOException
- If socket IO streams have a problem.
Exception
- If the evaluation failed.public void close() throws IOException
IOException
- If the socket can't be closed.protected void finalize() throws Throwable
Throwable
public static void main(String[] args)
|
Buju 0.4 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |