Skip to content

Commit 6e0a457

Browse files
committed
WapBasePath renamed to WapBaseUrl
1 parent f63b115 commit 6e0a457

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

howtos/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ absorb: true
3030
| MultipleAnnotationPost | Is posting multiple annotations in one request possible. | true |
3131
| WapPort | The port under which the WAP service is reachable. This port is used for HTTP and HTTPS service. When 80 is set and a http service is used, the port is omitted. The same applies to HTTPS and port 443. This setting has influence on the root IRI and cannot be changed after a database has been created. For details refer to the Root Container section. | 80 |
3232
| RdfBackendImplementation | The qualifier of the used RDF backend implementation. The default backend is 'jena'. | jena |
33-
| WapBasePath | An override for the base URL. Only use to run behind proxy or in a container. | |
33+
| WapBaseUrl | An override for the base URL. Only use to run behind proxy or in a container. | |
3434

howtos/root_container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Example 4: Hostname=host1.example.org, EnableHttps=true, WapPort=443
2929
When using the installer (via --install or by starting the jar in an empty folder) it asks for this base configuration
3030
and shows its consequences on the root container IRI.
3131

32-
All of the above can be overwritten by using the `WapBasePath` property.
32+
All of the above can be overwritten by using the `WapBaseUrl` property.
3333
This property is intended to be used only in scenarios where the server is reachable from a different URL
3434
and if this should or must be reflected in the database (reverse proxy, docker container).
3535

src/main/java/edu/kit/scc/dem/wapsrv/app/WapServerConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public class WapServerConfig extends WebMvcConfigurationSupport{
250250
@Value("${server.servlet.context-path:" + CONTEXT_PATH_DEFAULT + "}")
251251
private String contextPath = CONTEXT_PATH_DEFAULT;
252252

253-
@Value("${WapBasePath:" + PROXYBASEPATH_DEFAULT + "}")
253+
@Value("${WapBaseUrl:" + PROXYBASEPATH_DEFAULT + "}")
254254
private String proxiedBasePath;
255255

256256
/**

src/test/java/edu/kit/scc/dem/wapsrv/app/WapServerConfigTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,13 +462,13 @@ final void testGetBaseUrl() {
462462
assertNotNull(actual, "Could not get base url from WapServerConfig after setting context path.");
463463
expected = "https://localhost/context";
464464
assertEquals(expected, actual);
465-
// test WapBasePath = http://example.com
465+
// test WapBaseUrl = http://example.com
466466
paramProperties.setProperty(ConfigurationKeys.ProxiedBasePath.toString(), "http://example.com");
467467
objWapServerConfig.updateConfig(paramProperties);
468468

469469
actual = null;
470470
actual = objWapServerConfig.getBaseUrl();
471-
assertNotNull(actual, "Could not get base url from WapServerConfig after setting WapBasePath.");
471+
assertNotNull(actual, "Could not get base url from WapServerConfig after setting WapBaseUrl.");
472472
expected = "http://example.com";
473473
assertEquals(expected, actual);
474474
}

0 commit comments

Comments
 (0)