public class ServletContextUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
APP_PATH_ATTR_NAME |
protected static String |
SUCCESSFUL_ET_ATTR_NAME |
Constructor and Description |
---|
ServletContextUtil() |
Modifier and Type | Method and Description |
---|---|
protected static String |
buildTelemetrySentAttribute(String webappName,
String engineName) |
static String |
getAppPath(javax.servlet.ServletContext servletContext)
Consumed by Camunda Platform CE & EE Webapp:
Retrieves the application path from Spring Boot's servlet context.
|
static boolean |
isTelemetryDataSentAlready(String webappName,
String engineName,
javax.servlet.ServletContext servletContext) |
static void |
setAppPath(String applicationPath,
javax.servlet.ServletContext servletContext)
Sets an application path into Spring Boot's servlet context.
|
static void |
setTelemetryDataSent(String webappName,
String engineName,
javax.servlet.ServletContext servletContext)
Marks the web application as successfully sent to the engine as telemetry
info
|
protected static final String APP_PATH_ATTR_NAME
protected static final String SUCCESSFUL_ET_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 intopublic static boolean isTelemetryDataSentAlready(String webappName, String engineName, javax.servlet.ServletContext servletContext)
public static void setTelemetryDataSent(String webappName, String engineName, javax.servlet.ServletContext servletContext)
Copyright © 2021. All rights reserved.