Exemplo n.º 1
0
 /**
  * Utility method for getting a short help string for a server. Basically it contains an
  * introductory message and also lists all available apps for the server.
  *
  * @param server the server to ask for
  * @return the short introductory help string.
  */
 public static void printHelpString(Output out, ShellServer server, boolean list)
     throws ShellException, RemoteException {
   String header = "Available commands:";
   if (list) {
     out.println(header);
     out.println();
     for (String command : server.getAllAvailableCommands()) {
       out.println("   " + command);
     }
     out.println();
   } else {
     out.println(header + " " + availableCommandsAsString(server));
   }
   out.println("Use " + getShortUsageString() + " for info about each command.");
 }
Exemplo n.º 2
0
 @Override
 public void leave(Serializable clientID) throws RemoteException {
   actual.leave(clientID);
 }
Exemplo n.º 3
0
 @Override
 public String[] getAllAvailableCommands() throws RemoteException {
   return actual.getAllAvailableCommands();
 }
Exemplo n.º 4
0
 @Override
 public void terminate(Serializable clientID) throws RemoteException {
   actual.terminate(clientID);
 }
Exemplo n.º 5
0
 @Override
 public Welcome welcome(Map<String, Serializable> initialSession)
     throws RemoteException, ShellException {
   return actual.welcome(initialSession);
 }
Exemplo n.º 6
0
 @Override
 public Serializable interpretVariable(Serializable clientId, String key)
     throws ShellException, RemoteException {
   return actual.interpretVariable(clientId, key);
 }
Exemplo n.º 7
0
 @Override
 public Response interpretLine(Serializable clientId, String line, Output out)
     throws ShellException, RemoteException {
   return actual.interpretLine(clientId, line, out);
 }
Exemplo n.º 8
0
 @Override
 public String getName() throws RemoteException {
   return actual.getName();
 }
Exemplo n.º 9
0
 @Override
 public void setSessionVariable(Serializable clientID, String key, Object value)
     throws RemoteException, ShellException {
   actual.setSessionVariable(clientID, key, value);
 }
Exemplo n.º 10
0
 @Override
 public TabCompletion tabComplete(Serializable clientId, String partOfLine)
     throws ShellException, RemoteException {
   return actual.tabComplete(clientId, partOfLine);
 }