org.apache.james.postage.client
Class RemoteManagerClient
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteManagerClient
public RemoteManagerClient(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
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.