Removes last piece of business logic from thread object
[mkjsf-moved-to-github.git] / 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