String key = null;\r
Map<String,Pazpar2Command> commands = new HashMap<String,Pazpar2Command>();;\r
\r
- public Pazpar2State (StateManager mgr) {\r
- commands.put(Pazpar2Commands.INIT, new InitCommand(mgr));\r
- commands.put(Pazpar2Commands.PING, new PingCommand(mgr));\r
- commands.put(Pazpar2Commands.SETTINGS, new SettingsCommand(mgr));\r
- commands.put(Pazpar2Commands.SEARCH, new SearchCommand(mgr));\r
- commands.put(Pazpar2Commands.STAT, new StatCommand(mgr));\r
- commands.put(Pazpar2Commands.SHOW, new ShowCommand(mgr));\r
- commands.put(Pazpar2Commands.RECORD, new RecordCommand(mgr));\r
- commands.put(Pazpar2Commands.TERMLIST, new TermlistCommand(mgr));\r
- commands.put(Pazpar2Commands.BYTARGET, new BytargetCommand(mgr)); \r
+ public Pazpar2State (StateManager stateManager) {\r
+ commands.put(Pazpar2Commands.INIT, new InitCommand(stateManager));\r
+ commands.put(Pazpar2Commands.PING, new PingCommand(stateManager));\r
+ commands.put(Pazpar2Commands.SETTINGS, new SettingsCommand(stateManager));\r
+ commands.put(Pazpar2Commands.SEARCH, new SearchCommand(stateManager));\r
+ commands.put(Pazpar2Commands.STAT, new StatCommand(stateManager));\r
+ commands.put(Pazpar2Commands.SHOW, new ShowCommand(stateManager));\r
+ commands.put(Pazpar2Commands.RECORD, new RecordCommand(stateManager));\r
+ commands.put(Pazpar2Commands.TERMLIST, new TermlistCommand(stateManager));\r
+ commands.put(Pazpar2Commands.BYTARGET, new BytargetCommand(stateManager)); \r
\r
- commands.put(ServiceProxyCommands.AUTH, new AuthCommand(mgr));\r
- commands.put(ServiceProxyCommands.CATEGORIES, new CategoriesCommand(mgr));\r
+ commands.put(ServiceProxyCommands.AUTH, new AuthCommand(stateManager));\r
+ commands.put(ServiceProxyCommands.CATEGORIES, new CategoriesCommand(stateManager));\r
// key = "#1";\r
}\r
\r
* Generates a state key that can be used by the browser to pick\r
* up this state again at a later point in time.\r
* \r
+ * @see {@link com.indexdata.mkjsf.pazpar2.state.StateManager#setCurrentStateKey}\r
* @return\r
*/\r
public String getKey() {\r