org.apache.james.postage.client
Class RemoteManagerClient

java.lang.Object
  extended by org.apache.james.postage.client.RemoteManagerClient

public class RemoteManagerClient
extends java.lang.Object

Apache James Server specific client to access its Remote Manager.
This is used for creating user accounts.


Constructor Summary
RemoteManagerClient(java.lang.String host, int port, java.lang.String username, java.lang.String password)
           
 
Method Summary
 void disconnect()
           
 java.util.List executeCommand(java.lang.String command)
           
 boolean login()
           
 java.util.List readAnswer()
           
protected  java.util.List readAnswer(int numLines)
           
protected  void sendCommand(java.lang.String command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteManagerClient

public RemoteManagerClient(java.lang.String host,
                           int port,
                           java.lang.String username,
                           java.lang.String password)
Method Detail

login

public boolean login()

disconnect

public void disconnect()

executeCommand

public java.util.List executeCommand(java.lang.String command)

sendCommand

protected void sendCommand(java.lang.String command)
                    throws java.io.IOException
Throws:
java.io.IOException

readAnswer

public java.util.List readAnswer()

readAnswer

protected java.util.List readAnswer(int numLines)


Copyright © 2006-2007 The Apache Software Foundation. All Rights Reserved.