- public WebIndexer(final String globalPrefix, final String jspPath) {
- this.globalPrefix = globalPrefix;
- this.jspPath = jspPath;
+ /**
+ * Example: "https://www3.svjatoslav.eu/web/photos"
+ */
+ private final String contentServerRootUrl;
+
+ /**
+ * Example: "http://www3.svjatoslav.eu/web/photos"
+ */
+ private String metadataServerRootUrl;
+
+ /**
+ * Path relative to frontend server. For example, if full URL is "http://127.0.0.1:8080/photos"
+ * then relative URL would be "/photos"
+ */
+ private final String frontendServerRelativeRootUrl;
+
+ /**
+ * Example full URL: http://127.0.0.1:8080/photos/Spain
+ *
+ * @param contentServerRootUrl {@link #contentServerRootUrl}
+ * @param frontendServerRelativeRootUrl {@link #frontendServerRelativeRootUrl}
+ */
+ public WebIndexer(
+ final String contentServerRootUrl,
+ final String metadataServerRootUrl,
+ final String frontendServerRelativeRootUrl) {
+ this.contentServerRootUrl = contentServerRootUrl;
+ this.metadataServerRootUrl = metadataServerRootUrl;
+ this.frontendServerRelativeRootUrl = frontendServerRelativeRootUrl;