|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.webapp.mgt.utils.WebAppUtils
public class WebAppUtils
| Field Summary | |
|---|---|
static List<String> |
appBases
|
static List<String> |
vhostNames
|
| Constructor Summary | |
|---|---|
WebAppUtils()
|
|
| Method Summary | |
|---|---|
static String |
checkJaxApplication(WebApplication webApplication)
This util method is used to check if the given application is a Jax-RS/WS app |
static Map<String,WebApplicationsHolder> |
getAllWebappHolders(org.apache.axis2.context.ConfigurationContext configurationContext)
|
static String |
getAppbase(String hostName)
This util method will return appbase value of matching host name from catalina-server.xml |
static String |
getDefaultHost()
|
static WebApplicationsHolder |
getDefaultWebappHolder(org.apache.axis2.context.ConfigurationContext configurationContext)
|
static String |
getMatchingHostName(String filePath)
|
static String |
getServerConfigHostName()
This will read "HostName" value from carbon.xml and will return default host (from catalina-server.xml) if the value is null (or not defined) |
static String |
getWebappDir(String webappFilePath)
This util method is used to return base dir name of webapp. |
static String |
getWebappDirPath(String webappFilePath)
This util method is used to return file path of base dir. |
static WebApplicationsHolder |
getWebappHolder(String webappFilePath,
org.apache.axis2.context.ConfigurationContext configurationContext)
This util method will return the web application holder of the given web app file |
static String |
getWebappKey(File webappFile)
This will return a key with pair hostname:webappFileName |
static String |
getWebappName(String webappFilePath)
|
static boolean |
validateWebappFileName(String filename)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static List<String> vhostNames
public static List<String> appBases
| Constructor Detail |
|---|
public WebAppUtils()
| Method Detail |
|---|
public static String checkJaxApplication(WebApplication webApplication)
webApplication - application object
public static boolean validateWebappFileName(String filename)
public static String getWebappDirPath(String webappFilePath)
webappFilePath - path to webapp
public static String getMatchingHostName(String filePath)
filePath - web app base dir path
public static String getWebappKey(File webappFile)
webappFile - web application file
public static String getAppbase(String hostName)
hostName - hostname of Host element
public static Map<String,WebApplicationsHolder> getAllWebappHolders(org.apache.axis2.context.ConfigurationContext configurationContext)
configurationContext - ConfigurationContext instance
public static WebApplicationsHolder getWebappHolder(String webappFilePath,
org.apache.axis2.context.ConfigurationContext configurationContext)
webappFilePath - AbsolutePath of webappconfigurationContext - ConfigurationContext instance
public static String getWebappDir(String webappFilePath)
webappFilePath - path to web app
public static String getWebappName(String webappFilePath)
webappFilePath - path to webapp
public static WebApplicationsHolder getDefaultWebappHolder(org.apache.axis2.context.ConfigurationContext configurationContext)
public static String getDefaultHost()
public static String getServerConfigHostName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||