|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.metadata.MetaData org.jboss.metadata.WebMetaData
A representation of the web.xml and jboss-web.xml deployment descriptors as used by the AbstractWebContainer web container integration support class.
XmlLoadable
,
AbstractWebContainer
Field Summary | |
static int |
REPLICATION_GRANULARITY_ATTRIBUTE
|
static int |
REPLICATION_GRANULARITY_FIELD
|
static int |
REPLICATION_GRANULARITY_SESSION
Specify the session replication granularity level: session --- whole session level, attribute --- per attribute change, field --- fine grained user object level. |
static int |
REPLICATION_TYPE_ASYNC
|
static int |
REPLICATION_TYPE_SYNC
|
static int |
SESSION_COOKIES_DEFAULT
|
static int |
SESSION_COOKIES_DISABLED
|
static int |
SESSION_COOKIES_ENABLED
|
static int |
SESSION_INVALIDATE_ACCESS
|
static int |
SESSION_INVALIDATE_SET
|
static int |
SESSION_INVALIDATE_SET_AND_GET
|
static int |
SESSION_INVALIDATE_SET_AND_NON_PRIMITIVE_GET
|
Fields inherited from class org.jboss.metadata.MetaData |
TX_MANDATORY, TX_NEVER, TX_NOT_SUPPORTED, TX_REQUIRED, TX_REQUIRES_NEW, TX_SUPPORTS, TX_UNKNOWN |
Constructor Summary | |
WebMetaData()
|
Method Summary | |
ClassLoader |
getContextLoader()
|
String |
getContextRoot()
This the the jboss-web.xml descriptor context-root and it is only meaningful if a war is deployed outside of an ear. |
Collection |
getDepends()
Access the web application depends |
boolean |
getDistributable()
The distributable flag. |
Iterator |
getEjbLocalReferences()
Return an iterator of the ejb-local-ref mappings. |
Iterator |
getEjbReferences()
Return an iterator of the ejb-ref mappings. |
ClassLoader |
getENCLoader()
|
Iterator |
getEnvironmentEntries()
Return an iterator of the env-entry mappings. |
int |
getInvalidateSessionPolicy()
|
String |
getJaccContextID()
|
boolean |
getJava2ClassLoadingCompliance()
A flag indicating if the normal Java2 parent first class loading model should be used over the servlet 2.3 web container first model. |
org.jboss.mx.loading.LoaderRepositoryFactory.LoaderRepositoryConfig |
getLoaderConfig()
|
MessageDestinationMetaData |
getMessageDestination(String name)
Get a message destination metadata |
Iterator |
getMessageDestinationReferences()
Return an iterator of message-destination-refs. |
int |
getReplicationGranularity()
|
int |
getReplicationType()
|
Iterator |
getResourceEnvReferences()
Return an iterator of the resource-ref mappings. |
Iterator |
getResourceReferences()
Return an iterator of the resource-ref mappings. |
RunAsIdentity |
getRunAsIdentity(String servletName)
Access the RunAsIdentity associated with the given servlet |
Iterator |
getSecurityContraints()
Get the security-constraint settings |
String |
getSecurityDomain()
Return the optional security-domain jboss-web.xml element. |
Set |
getSecurityRoleNames()
Get the security-role names from the web.xml descriptor |
Set |
getSecurityRoleNamesByPrincipal(String userName)
|
Map |
getSecurityRoleRefs()
|
Map |
getSecurityRoles()
Get the optional map of security role/user mapping. |
Iterator |
getServiceReferences()
Return an iterator of the service-ref mappings. |
HashMap |
getServletMappings()
Get the servlet-name values from the web.xml descriptor |
Set |
getServletNames()
Get the servlet-name values from the web.xml descriptor |
int |
getSessionCookies()
|
Iterator |
getVirtualHosts()
The servlet container virtual host the war should be deployed into. |
String |
getWsdlPublishLocationByName(String name)
Get the optional wsdl publish location from jboss-web.xml. |
protected void |
importJBossWebXml(Element jbossWeb)
Parse the elements of the jboss-web element used by the integration layer. |
protected void |
importWebXml(Element webApp)
Parse the elements of the web-app element used by the integration layer. |
void |
importXml(Element element)
Imports either the jboss or ejb-jar from the given element. |
boolean |
isFlushOnSessionInvalidation()
The flag indicating whether the associated security domain cache should be flushed when the session is invalidated. |
void |
mergeSecurityRoles(Map applRoles)
Merge the security role/principal mapping defined in jboss-web.xml with the one defined at jboss-app.xml. |
void |
setContextLoader(ClassLoader cxtLoader)
Make sure this is called during performDeploy |
void |
setContextRoot(String contextRoot)
|
void |
setENCLoader(ClassLoader encLoader)
|
void |
setFlushOnSessionInvalidation(boolean flag)
The flag indicating whether the associated security domain cache should be flushed when the session is invalidated. |
void |
setJaccContextID(String jaccContextID)
|
void |
setJava2ClassLoadingCompliance(boolean flag)
|
void |
setLoaderConfig(org.jboss.mx.loading.LoaderRepositoryFactory.LoaderRepositoryConfig loaderConfig)
|
void |
setResourceClassLoader(URLClassLoader resourceCl)
Set the ClassLoader to load additional resources |
void |
setSecurityDomain(String securityDomain)
Set the security domain for this web application |
Methods inherited from class org.jboss.metadata.MetaData |
clone, getChildrenByTagName, getElementAttribute, getElementContent, getElementContent, getFirstElementContent, getOptionalChild, getOptionalChild, getOptionalChildBooleanContent, getOptionalChildBooleanContent, getOptionalChildContent, getOptionalChildContent, getUniqueChild, getUniqueChildContent, importEjbJarXml, importJbossXml, jdk13Enabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SESSION_INVALIDATE_ACCESS
public static final int SESSION_INVALIDATE_SET_AND_GET
public static final int SESSION_INVALIDATE_SET_AND_NON_PRIMITIVE_GET
public static final int SESSION_INVALIDATE_SET
public static final int REPLICATION_TYPE_SYNC
public static final int REPLICATION_TYPE_ASYNC
public static final int REPLICATION_GRANULARITY_SESSION
public static final int REPLICATION_GRANULARITY_ATTRIBUTE
public static final int REPLICATION_GRANULARITY_FIELD
public static final int SESSION_COOKIES_DEFAULT
public static final int SESSION_COOKIES_ENABLED
public static final int SESSION_COOKIES_DISABLED
Constructor Detail |
public WebMetaData()
Method Detail |
public void setResourceClassLoader(URLClassLoader resourceCl)
public Iterator getEnvironmentEntries()
public Iterator getEjbReferences()
public Iterator getEjbLocalReferences()
public Iterator getResourceReferences()
public Iterator getResourceEnvReferences()
public Iterator getMessageDestinationReferences()
public MessageDestinationMetaData getMessageDestination(String name)
name
- the name of the message destination
public Iterator getServiceReferences()
public String getContextRoot()
public void setContextRoot(String contextRoot)
public String getWsdlPublishLocationByName(String name)
public String getJaccContextID()
public void setJaccContextID(String jaccContextID)
public String getSecurityDomain()
public void setSecurityDomain(String securityDomain)
public boolean isFlushOnSessionInvalidation()
public void setFlushOnSessionInvalidation(boolean flag)
flag
- - true if the flush should occur, false otherwise.public Iterator getSecurityContraints()
public Map getSecurityRoleRefs()
public Map getSecurityRoles()
public Set getSecurityRoleNamesByPrincipal(String userName)
userName
-
public RunAsIdentity getRunAsIdentity(String servletName)
servletName
- - the servlet-name from the web.xml
public Set getSecurityRoleNames()
public HashMap getServletMappings()
public Set getServletNames()
public void mergeSecurityRoles(Map applRoles)
public Iterator getVirtualHosts()
public boolean getDistributable()
public Collection getDepends()
public boolean getJava2ClassLoadingCompliance()
public void setJava2ClassLoadingCompliance(boolean flag)
public org.jboss.mx.loading.LoaderRepositoryFactory.LoaderRepositoryConfig getLoaderConfig()
public void setLoaderConfig(org.jboss.mx.loading.LoaderRepositoryFactory.LoaderRepositoryConfig loaderConfig)
public ClassLoader getENCLoader()
public void setENCLoader(ClassLoader encLoader)
public ClassLoader getContextLoader()
public void setContextLoader(ClassLoader cxtLoader)
public int getSessionCookies()
public int getInvalidateSessionPolicy()
public int getReplicationType()
public int getReplicationGranularity()
public void importXml(Element element) throws org.jboss.deployment.DeploymentException
MetaData
importXml
in interface XmlLoadable
importXml
in class MetaData
element
- The element to import.
org.jboss.deployment.DeploymentException
- Unrecognized root tag.protected void importWebXml(Element webApp) throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
protected void importJBossWebXml(Element jbossWeb) throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |