|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.webapp.mgt.TomcatUtil
public class TomcatUtil
A set of utility methods for interacting with Embedded Tomcat
| Constructor Summary | |
|---|---|
TomcatUtil()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TomcatUtil()
| Method Detail |
|---|
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 contexts
Exception - - on errorpublic static String getApplicationNameFromContext(String contextName)
public static Boolean isVirtualHostRequest(String requestedHostName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||