Adds distinction between pz2 and sp errors
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / mkjsf / pazpar2 / SearchClient.java
index c7ec2c5..e50d498 100644 (file)
@@ -9,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);\r
+  public HttpResponseWrapper 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
@@ -20,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