Пример #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.");
 }
Пример #2
0
 @Override
 public void leave(Serializable clientID) throws RemoteException {
   actual.leave(clientID);
 }
Пример #3
0
 @Override
 public String[] getAllAvailableCommands() throws RemoteException {
   return actual.getAllAvailableCommands();
 }
Пример #4
0
 @Override
 public void terminate(Serializable clientID) throws RemoteException {
   actual.terminate(clientID);
 }
Пример #5
0
 @Override
 public Welcome welcome(Map<String, Serializable> initialSession)
     throws RemoteException, ShellException {
   return actual.welcome(initialSession);
 }
Пример #6
0
 @Override
 public Serializable interpretVariable(Serializable clientId, String key)
     throws ShellException, RemoteException {
   return actual.interpretVariable(clientId, key);
 }
Пример #7
0
 @Override
 public Response interpretLine(Serializable clientId, String line, Output out)
     throws ShellException, RemoteException {
   return actual.interpretLine(clientId, line, out);
 }
Пример #8
0
 @Override
 public String getName() throws RemoteException {
   return actual.getName();
 }
Пример #9
0
 @Override
 public void setSessionVariable(Serializable clientID, String key, Object value)
     throws RemoteException, ShellException {
   actual.setSessionVariable(clientID, key, value);
 }
Пример #10
0
 @Override
 public TabCompletion tabComplete(Serializable clientId, String partOfLine)
     throws ShellException, RemoteException {
   return actual.tabComplete(clientId, partOfLine);
 }