From 024ae722c80df92fd14b2a82f0c63004776aee02 Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Tue, 14 May 2013 12:31:34 -0400 Subject: [PATCH] Removes last piece of business logic from thread object .. making a purely technical class, just for executing pz2 requests asynchronously --- .../java/com/indexdata/mkjsf/pazpar2/CommandThread.java | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/CommandThread.java b/src/main/java/com/indexdata/mkjsf/pazpar2/CommandThread.java index 1225116..10a0adc 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/CommandThread.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/CommandThread.java @@ -17,20 +17,9 @@ public class CommandThread extends Thread { } /** - * Runs the specified command using the specified Pazpar2 client - * Sets the Pazpar2 response as an XML response string to be retrieved by - * getResponse(). - * - * In case of an exception, an error response is generated, the document - * element being the same as it would have been if successful (named after - * the command, that is). - * + * Executes the specified command using the specified Pazpar2 client */ - public void run() { - - if (command.getCommandName().equals("search")) { - client.setSearchCommand(command); - } + public void run() { long start = System.currentTimeMillis(); commandResponse = client.executeCommand(command); long end = System.currentTimeMillis(); -- 1.7.10.4