public class ServletContextUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
APP_PATH_ATTR_NAME |
Constructor and Description |
---|
ServletContextUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getAppPath(javax.servlet.ServletContext servletContext)
Consumed by Camunda BPM CE & EE Webapp:
Retrieves the application path from Spring Boot's servlet context.
|
static void |
setAppPath(String applicationPath,
javax.servlet.ServletContext servletContext)
Sets an application path into Spring Boot's servlet context.
|
protected static final String APP_PATH_ATTR_NAME
public static String getAppPath(javax.servlet.ServletContext servletContext)
servletContext
- that holds the application pathString
containing the application path or an empty
String
when no application path was set.public static void setAppPath(String applicationPath, javax.servlet.ServletContext servletContext)
applicationPath
- to be set into Spring Boot's servlet contextservletContext
- of Spring Boot the application path should be set intoCopyright © 2020. All rights reserved.