public String update (String commands) {\r
if (! errors.hasConfigurationErrors()) {\r
if (commandsAreValid(commands)) {\r
- if (hasQuery()) {\r
+ if (hasQuery() || (commands.equals("record") && pzreq.getCommand("record").hasParameterSet("recordquery"))) {\r
handleQueryStateChanges(commands);\r
logger.debug("Processing request for " + commands); \r
List<CommandThread> threadList = new ArrayList<CommandThread>();\r
Pazpar2ResponseData responseObject = Pazpar2ResponseParser.getParser().getDataObject(response);\r
pzresp.put(commandName, responseObject); \r
}\r
- if (commands.equals("record")) {\r
+ if (commands.equals("record")) { \r
logger.debug("Record: Active clients: "+pzresp.getRecord().getActiveClients());\r
return pzresp.getRecord().getActiveClients();\r
} else {\r
+ Utils.objectId(configurator) + "]" ); \r
configureClient(searchClient,configurator);\r
stateMgr.addStateListener(this);\r
+ serviceProxyUrl = searchClient.getConfiguration().get(ServiceProxyClient.SERVICE_PROXY_URL);\r
} else {\r
logger.debug("Pz2ProxyBean:postConstruct: searchClient already instantiated " +\r
"during construction of parent object Pz2Bean.");\r