public class WebApp
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
WebApp
represent a web applicaiton.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APP_STATE |
static java.lang.String |
APP_STATE_ARCHIVED |
static java.lang.String |
APP_STATE_STARTED |
static java.lang.String |
APP_STATE_STOPPED |
static java.lang.String |
APP_STATE_UNKNOWN |
static java.lang.String |
CLASS_VERSION |
static java.lang.String |
COMMENT |
static java.lang.String |
CONTEXT_ROOT |
static java.lang.String |
DISPLAY_NAME |
static java.lang.String |
DYNAMO_CONTEXT_ROOT |
static java.lang.String |
EVENT_DATE |
static java.lang.String |
REAL_PATH |
static java.lang.String |
RESOURCE_PATHS |
static java.lang.String |
WEB_URI |
Constructor and Description |
---|
WebApp() |
WebApp(java.lang.String pName) |
WebApp(java.lang.String pName,
java.lang.String pContextRoot) |
WebApp(java.lang.String pName,
java.lang.String pContextRoot,
java.lang.String pRealPath) |
WebApp(WebApp pWebApp) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
WebApp |
deepCopy() |
java.lang.String |
getAppState() |
java.lang.String |
getComment() |
java.lang.String |
getContextRoot()
getContextRoot |
java.lang.String |
getLocation()
getLocation |
java.lang.String |
getName()
getName |
java.util.Properties |
getProperties()
getProperties get all the
properties for this app |
java.lang.String |
getProperty(java.lang.String pName)
getProperty get the value of the
given property named by pName |
java.lang.String |
getRealPath(java.lang.String pPath)
getRealPath |
java.lang.String |
getResource(java.lang.String pPath)
getResource |
javax.servlet.ServletContext |
getServletContext()
getServletContext get all the
properties for this app |
boolean |
isStarted() |
void |
merge(WebApp pWebApp) |
void |
save() |
void |
save(java.lang.String pFile) |
void |
setComment(java.lang.String pComment) |
void |
setProperties(java.util.Properties pProperties) |
void |
setProperty(java.lang.String pName,
java.lang.Object pValue)
setProperty |
void |
setServletContext(javax.servlet.ServletContext pServletContext) |
WebApp |
shallowCopy() |
java.lang.String |
toString()
toString |
public static final java.lang.String CLASS_VERSION
public static final java.lang.String APP_STATE
public static final java.lang.String CONTEXT_ROOT
public static final java.lang.String DYNAMO_CONTEXT_ROOT
public static final java.lang.String DISPLAY_NAME
public static final java.lang.String EVENT_DATE
public static final java.lang.String REAL_PATH
public static final java.lang.String RESOURCE_PATHS
public static final java.lang.String WEB_URI
public static final java.lang.String COMMENT
public static final java.lang.String APP_STATE_STARTED
public static final java.lang.String APP_STATE_STOPPED
public static final java.lang.String APP_STATE_ARCHIVED
public static final java.lang.String APP_STATE_UNKNOWN
public WebApp()
public WebApp(WebApp pWebApp)
public WebApp(java.lang.String pName)
public WebApp(java.lang.String pName, java.lang.String pContextRoot)
public WebApp(java.lang.String pName, java.lang.String pContextRoot, java.lang.String pRealPath)
public java.util.Properties getProperties()
getProperties
get all the
properties for this appMap
valuepublic void setProperties(java.util.Properties pProperties)
public javax.servlet.ServletContext getServletContext()
getServletContext
get all the
properties for this appServletContext
valuepublic void setServletContext(javax.servlet.ServletContext pServletContext)
public void merge(WebApp pWebApp)
public java.lang.String getProperty(java.lang.String pName)
getProperty
get the value of the
given property named by pNamepName
- a String
value thatString
valuepublic void setProperty(java.lang.String pName, java.lang.Object pValue)
setProperty
pName
- a String
valuepValue
- an Object
valuepublic java.lang.String getName()
getName
String
valuepublic java.lang.String getLocation()
getLocation
String
valuepublic java.lang.String getComment()
public void setComment(java.lang.String pComment)
public java.lang.String getAppState()
public boolean isStarted()
public java.lang.String getRealPath(java.lang.String pPath)
getRealPath
pPath
- a String
valueString
valuepublic java.lang.String getContextRoot()
getContextRoot
String
value
that represents the context rootpublic java.lang.String getResource(java.lang.String pPath)
getResource
String
valuepublic java.lang.String toString()
toString
toString
in class java.lang.Object
String
valuepublic void save()
public void save(java.lang.String pFile)
public java.lang.Object clone()
clone
in class java.lang.Object
public WebApp deepCopy()
public WebApp shallowCopy()