--- /dev/null
+package com.indexdata.mkjsf.pazpar2;\r
+\r
+import java.io.Serializable;\r
+\r
+import com.indexdata.mkjsf.config.Configurable;\r
+import com.indexdata.mkjsf.config.Configuration;\r
+import com.indexdata.mkjsf.pazpar2.commands.Pazpar2Command;\r
+\r
+public interface SearchClient extends Configurable, Serializable {\r
+ \r
+ public void setSearchCommand(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
+ // to the server AND propagation of context to threads is currently \r
+ // not supported. Trying to do so throws a WELD-001303 error. \r
+ // If propagation to threads gets supported, the cloning can go.\r
+ public SearchClient cloneMe();\r
+ \r
+ public boolean isAuthenticatingClient(); \r
+ public Configuration getConfiguration();\r
+ public String getServiceUrl();\r
+ public void setServiceUrl(String url);\r
+ public boolean hasServiceUrl(); \r
+}\r