Removes last piece of business logic from thread object
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Tue, 14 May 2013 16:31:34 +0000 (12:31 -0400)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Tue, 14 May 2013 16:31:34 +0000 (12:31 -0400)
.. making a purely technical class, just for executing pz2 requests
   asynchronously

src/main/java/com/indexdata/mkjsf/pazpar2/CommandThread.java

index 1225116..10a0adc 100644 (file)
@@ -17,20 +17,9 @@ public class CommandThread extends Thread {
   }\r
   \r
   /**\r
-   * Runs the specified command using the specified Pazpar2 client\r
-   * Sets the Pazpar2 response as an XML response string to be retrieved by\r
-   * getResponse().\r
-   * \r
-   * In case of an exception, an error response is generated, the document\r
-   * element being the same as it would have been if successful (named after\r
-   * the command, that is).  \r
-   *  \r
+   * Executes the specified command using the specified Pazpar2 client\r
    */\r
-  public void run() {\r
-    \r
-    if (command.getCommandName().equals("search")) {\r
-      client.setSearchCommand(command);\r
-    }\r
+  public void run() {    \r
     long start = System.currentTimeMillis();\r
     commandResponse = client.executeCommand(command);\r
     long end = System.currentTimeMillis();\r