import com.indexdata.mkjsf.pazpar2.data.CommandError;\r
import com.indexdata.mkjsf.utils.Utils;\r
\r
+/**\r
+ * Search client handling Service Proxy requests. \r
+ * \r
+ * @author Niels Erik\r
+ *\r
+ */\r
public class ServiceProxyClient implements SearchClient {\r
\r
private static final long serialVersionUID = -4031644009579840277L;\r
return handler.getReasonPhrase();\r
}\r
\r
+ /**\r
+ * Does nothing in Service Proxy context\r
+ */\r
@Override\r
public void setSearchCommand(Pazpar2Command command) {\r
// Do nothing, Service Proxy is handling this \r
return clone;\r
}\r
\r
+ /**\r
+ * Returns default configuration parameters for the client.\r
+ */\r
@Override\r
public Map<String, String> getDefaults() { \r
return new HashMap<String,String>();\r
}\r
\r
+ /**\r
+ * Returns the configuration name of the client\r
+ */\r
@Override\r
public String getModuleName() {\r
return MODULENAME;\r
return commandResponse; \r
}\r
\r
+ /**\r
+ * Sets the URL of the Service Proxy that should service requests. \r
+ */\r
public void setServiceUrl (String url) { \r
serviceUrl = url;\r
}\r
return serviceUrl;\r
}\r
\r
+ /**\r
+ * Returns true if a Service Proxy URL was defined yet.\r
+ */\r
@Override\r
public boolean hasServiceUrl() {\r
return serviceUrl != null && serviceUrl.length()>0;\r