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
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 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
\r
public boolean isAuthenticatingClient(); \r
public Configuration getConfiguration();\r
+ public String getServiceUrl();\r
+ public void setServiceUrl(String url);\r
+ public boolean hasServiceUrl(); \r
}\r