Whether prompt there can be some receivers in command-pattern? I implement a simple client for dropbox's, it turns out several commands (code below) is the above patrn appropriate here? More specifically, there are getAuth (), helper () methods .... will it be correct to create separate classes (receiver) or do one with the corresponding concret-commandam methods?
private void command(String[] args) throws IOException, ParseException, DbxException { while (true) { if (args.length == 0){ args = helper(); } else if (args[0].toLowerCase().equals("auth") && args.length == 3){ getAuth(args); break; } else if (args[0].toLowerCase().equals("info") && args.length > 1 && args.length < 4) { getInfo(args); break; } else if (args[0].toLowerCase().equals("list") && args.length > 2 && args.length < 5){ getList(args); break; } else { args = helper(); } } }