Adds support for chosing pz2 or sp service run-time
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / mkjsf / pazpar2 / SearchClient.java
index 1a67522..745a6b6 100644 (file)
@@ -1,10 +1,7 @@
 package com.indexdata.mkjsf.pazpar2;\r
 \r
-import java.io.ByteArrayOutputStream;\r
-import java.io.IOException;\r
 import java.io.Serializable;\r
 \r
-import com.indexdata.masterkey.pazpar2.client.exceptions.Pazpar2ErrorException;\r
 import com.indexdata.mkjsf.config.Configurable;\r
 import com.indexdata.mkjsf.config.Configuration;\r
 import com.indexdata.mkjsf.pazpar2.commands.Pazpar2Command;\r
@@ -12,7 +9,7 @@ import com.indexdata.mkjsf.pazpar2.commands.Pazpar2Command;
 public interface SearchClient extends Configurable, Serializable {\r
   \r
   public void setSearchCommand(Pazpar2Command command);\r
-  public CommandResponse executeCommand(Pazpar2Command command, ByteArrayOutputStream baos) throws Pazpar2ErrorException, IOException;\r
+  public CommandResponse executeCommand(Pazpar2Command command);\r
   \r
   // Use cloneMe() method if injecting the client with CDI.\r
   // The client is used for asynchronously sending off requests\r
@@ -23,4 +20,7 @@ public interface SearchClient extends Configurable, Serializable {
   \r
   public boolean isAuthenticatingClient();  \r
   public Configuration getConfiguration();\r
+  public String getServiceUrl();\r
+  public void setServiceUrl(String url);\r
+  public boolean hasServiceUrl();  \r
 }\r