public class TomcatUtil extends Object
Constructor and Description |
---|
TomcatUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addWebappsDeployer(String webappsDir,
TomcatGenericWebappsDeployer webappsDeployer)
Add a TomcatGenericWebappsDeployer
|
static boolean |
checkUnpackWars()
check unpack wars property
|
static String |
getApplicationNameFromContext(String contextName) |
static Map<String,TomcatGenericWebappsDeployer> |
getWebappsDeployers()
Retrieve the list of registered webapps deployers
|
static Boolean |
isVirtualHostRequest(String requestedHostName) |
static void |
remapRequest(javax.servlet.http.HttpServletRequest request)
This method is used in remapping a request with context at tomcat level.
|
public static boolean checkUnpackWars()
public static void addWebappsDeployer(String webappsDir, TomcatGenericWebappsDeployer webappsDeployer)
webappsDir
- The directory in which the webapps are foundwebappsDeployer
- The corresponding TomcatGenericWebappsDeployerpublic static Map<String,TomcatGenericWebappsDeployer> getWebappsDeployers()
public static void remapRequest(javax.servlet.http.HttpServletRequest request) throws Exception
request
- - servlet request to be remapped for contextsException
- - on errorpublic static String getApplicationNameFromContext(String contextName)
Copyright © 2018 WSO2. All rights reserved.