diff src/main/java/de/mpiwg/itgroup/annotations/restlet/BaseRestlet.java @ 94:fcb6fe10e08c

added config option for webapp URL prefix.
author casties
date Tue, 10 Feb 2015 17:45:56 +0100
parents 247cbbb385de
children
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/itgroup/annotations/restlet/BaseRestlet.java	Sun Feb 08 18:09:00 2015 +0100
+++ b/src/main/java/de/mpiwg/itgroup/annotations/restlet/BaseRestlet.java	Tue Feb 10 17:45:56 2015 +0100
@@ -114,6 +114,12 @@
     public static final String AUTHORIZATION_MODE_KEY = "annotationmanager.authorization";
     
     /**
+     * prefix for webapp URLs (if needed by proxying).
+     */
+    protected String webappUriPrefix = null;
+    public static final String WEBAPP_PREFIX = "annotationmanager.webapp.prefix";
+    
+    /**
      * prefix to create uris for tags in store.
      */
     public static String TAGS_URI_PREFIX = "";
@@ -171,6 +177,7 @@
                          */
                         graphdbPath = serverConfig.getProperty(GRAPHDB_PATH_KEY, graphdbPath);
                         ldapServerUrl = serverConfig.getProperty(LDAP_SERVER_KEY, null);
+                        webappUriPrefix = serverConfig.getProperty(WEBAPP_PREFIX, null);
                         /*
                          * uri prefixes
                          */