|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.metadata.MetaData (src)
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
(src) ,
AbstractWebContainer
(src) 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 (src) |
TX_MANDATORY, TX_NEVER, TX_NOT_SUPPORTED, TX_REQUIRED, TX_REQUIRES_NEW, TX_SUPPORTS, TX_UNKNOWN |
Constructor Summary | |
WebMetaData()
|
Method Summary | |
java.lang.ClassLoader |
getContextLoader()
|
java.lang.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. |
java.util.Collection |
getDepends()
Access the web application depends |
boolean |
getDistributable()
The distributable flag. |
java.util.Iterator |
getEjbLocalReferences()
Return an iterator of the ejb-local-ref mappings. |
java.util.Iterator |
getEjbReferences()
Return an iterator of the ejb-ref mappings. |
java.lang.ClassLoader |
getENCLoader()
|
java.util.Iterator |
getEnvironmentEntries()
Return an iterator of the env-entry mappings. |
int |
getInvalidateSessionPolicy()
|
java.lang.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. |
LoaderRepositoryFactory.LoaderRepositoryConfig (src) |
getLoaderConfig()
|
MessageDestinationMetaData (src) |
getMessageDestination(java.lang.String name)
Get a message destination metadata |
java.util.Iterator |
getMessageDestinationReferences()
Return an iterator of message-destination-refs. |
int |
getReplicationGranularity()
|
int |
getReplicationType()
|
java.util.Iterator |
getResourceEnvReferences()
Return an iterator of the resource-ref mappings. |
java.util.Iterator |
getResourceReferences()
Return an iterator of the resource-ref mappings. |
java.util.Map |
getRunAsIdentity()
|
RunAsIdentity (src) |
getRunAsIdentity(java.lang.String servletName)
Access the RunAsIdentity associated with the given servlet |
java.util.Iterator |
getSecurityContraints()
Get the security-constraint settings |
java.lang.String |
getSecurityDomain()
Return the optional security-domain jboss-web.xml element. |
java.util.Set |
getSecurityRoleNames()
Get the security-role names from the web.xml descriptor |
java.util.Set |
getSecurityRoleNamesByPrincipal(java.lang.String userName)
|
java.util.Map |
getSecurityRoleRefs()
|
java.util.Map |
getSecurityRoles()
Get the optional map of security role/user mapping. |
java.util.Iterator |
getServiceReferences()
Return an iterator of the service-ref mappings. |
java.util.HashMap |
getServletMappings()
Get the servlet-name values from the web.xml descriptor |
java.util.Set |
getServletNames()
Get the servlet-name values from the web.xml descriptor |
int |
getSessionCookies()
|
java.util.Iterator |
getVirtualHosts()
The servlet container virtual host the war should be deployed into. |
java.lang.String |
getWsdlPublishLocationByName(java.lang.String name)
Get the optional wsdl publish location from jboss-web.xml. |
protected void |
importJBossWebXml(org.w3c.dom.Element jbossWeb)
Parse the elements of the jboss-web element used by the integration layer. |
protected void |
importWebXml(org.w3c.dom.Element webApp)
Parse the elements of the web-app element used by the integration layer. |
void |
importXml(org.w3c.dom.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. |
boolean |
isWebServiceDeployment()
|
void |
mergeSecurityRoles(java.util.Map applRoles)
Merge the security role/principal mapping defined in jboss-web.xml with the one defined at jboss-app.xml. |
void |
setContextLoader(java.lang.ClassLoader cxtLoader)
Make sure this is called during performDeploy |
void |
setContextRoot(java.lang.String contextRoot)
|
void |
setDepends(java.util.Collection depends)
|
void |
setDistributable(boolean distributable)
Mark the web-app as distributable |
void |
setEjbLocalReferences(java.util.Map ejbReferences)
|
void |
setEjbReferences(java.util.Map ejbReferences)
|
void |
setENCLoader(java.lang.ClassLoader encLoader)
|
void |
setEnvironmentEntries(java.util.Collection environmentEntries)
|
void |
setFlushOnSessionInvalidation(boolean flag)
The flag indicating whether the associated security domain cache should be flushed when the session is invalidated. |
void |
setInvalidateSessionPolicy(int invalidateSessionPolicy)
|
void |
setJaccContextID(java.lang.String jaccContextID)
|
void |
setJava2ClassLoadingCompliance(boolean flag)
|
void |
setLoaderConfig(LoaderRepositoryFactory.LoaderRepositoryConfig (src) loaderConfig)
|
void |
setMessageDestination(java.util.Map messageDestinations)
|
void |
setMessageDestinationReferences(java.util.Map messageDestinationReferences)
|
void |
setReplicationGranularity(int replicationGranularity)
|
void |
setResourceClassLoader(java.net.URLClassLoader resourceCl)
Set the ClassLoader to load additional resources |
void |
setResourceEnvReferences(java.util.Map resourceReferences)
|
void |
setResourceReferences(java.util.Map resourceReferences)
|
void |
setRunAsIdentity(java.util.Map runAsIdentity)
The jboss-web.xml servlet/run-as |
void |
setSecurityConstraints(java.util.Collection securityContraints)
|
void |
setSecurityDomain(java.lang.String securityDomain)
Set the security domain for this web application |
void |
setSecurityRoleReferences(java.util.Map securityRoleReferences)
|
void |
setSecurityRoles(java.util.Map securityRoles)
|
void |
setServiceReferences(java.util.Map serviceReferences)
|
void |
setServletMappings(java.util.Map servletMappings)
servlet-mapping/serlvet-name to url-pattern mapping |
void |
setSessionCookies(int sessionCookies)
|
void |
setVirtualHosts(java.util.Collection virtualHosts)
|
void |
setWebServiceDeployment(boolean webServiceDeployment)
|
void |
setWsdlPublishLocationMap(java.util.Map wsdlPublishLocationMap)
|
Methods inherited from class org.jboss.metadata.MetaData (src) |
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(java.net.URLClassLoader resourceCl)
public java.util.Iterator getEnvironmentEntries()
public void setEnvironmentEntries(java.util.Collection environmentEntries)
environmentEntries
- - Collectionpublic java.util.Iterator getEjbReferences()
public void setEjbReferences(java.util.Map ejbReferences)
ejbReferences
- - Mappublic java.util.Iterator getEjbLocalReferences()
public void setEjbLocalReferences(java.util.Map ejbReferences)
ejbReferences
- - Mappublic java.util.Iterator getResourceReferences()
public void setResourceReferences(java.util.Map resourceReferences)
resourceReferences
- - Mappublic java.util.Iterator getResourceEnvReferences()
public void setResourceEnvReferences(java.util.Map resourceReferences)
resourceReferences
- - Mappublic java.util.Iterator getMessageDestinationReferences()
public void setMessageDestinationReferences(java.util.Map messageDestinationReferences)
messageDestinationReferences
- - Mappublic MessageDestinationMetaData (src) getMessageDestination(java.lang.String name)
name
- the name of the message destination
public void setMessageDestination(java.util.Map messageDestinations)
messageDestinations
- - Mappublic java.util.Iterator getServiceReferences()
public void setServiceReferences(java.util.Map serviceReferences)
serviceReferences
- - Mappublic java.lang.String getContextRoot()
public void setContextRoot(java.lang.String contextRoot)
public java.lang.String getWsdlPublishLocationByName(java.lang.String name)
public void setWsdlPublishLocationMap(java.util.Map wsdlPublishLocationMap)
wsdlPublishLocationMap
- - Mappublic boolean isWebServiceDeployment()
public void setWebServiceDeployment(boolean webServiceDeployment)
public java.lang.String getJaccContextID()
public void setJaccContextID(java.lang.String jaccContextID)
public java.lang.String getSecurityDomain()
public void setSecurityDomain(java.lang.String securityDomain)
public boolean isFlushOnSessionInvalidation()
public void setFlushOnSessionInvalidation(boolean flag)
flag
- - true if the flush should occur, false otherwise.public java.util.Iterator getSecurityContraints()
public void setSecurityConstraints(java.util.Collection securityContraints)
securityContraints
- - Collectionpublic java.util.Map getSecurityRoleRefs()
public void setSecurityRoleReferences(java.util.Map securityRoleReferences)
securityRoleReferences
- - public java.util.Set getSecurityRoleNames()
public java.util.Map getSecurityRoles()
public void setSecurityRoles(java.util.Map securityRoles)
securityRoles
- - Mappublic java.util.Set getSecurityRoleNamesByPrincipal(java.lang.String userName)
userName
-
public RunAsIdentity (src) getRunAsIdentity(java.lang.String servletName)
servletName
- - the servlet-name from the web.xml
public java.util.Map getRunAsIdentity()
public void setRunAsIdentity(java.util.Map runAsIdentity)
public java.util.HashMap getServletMappings()
public void setServletMappings(java.util.Map servletMappings)
servletMappings
- - Mappublic java.util.Set getServletNames()
public void mergeSecurityRoles(java.util.Map applRoles)
public java.util.Iterator getVirtualHosts()
public void setVirtualHosts(java.util.Collection virtualHosts)
virtualHosts
- - Collectionpublic boolean getDistributable()
public void setDistributable(boolean distributable)
distributable
- - true for distributablepublic java.util.Collection getDepends()
public void setDepends(java.util.Collection depends)
depends
- - Collectionpublic boolean getJava2ClassLoadingCompliance()
public void setJava2ClassLoadingCompliance(boolean flag)
public LoaderRepositoryFactory.LoaderRepositoryConfig (src) getLoaderConfig()
public void setLoaderConfig(LoaderRepositoryFactory.LoaderRepositoryConfig (src) loaderConfig)
public java.lang.ClassLoader getENCLoader()
public void setENCLoader(java.lang.ClassLoader encLoader)
public java.lang.ClassLoader getContextLoader()
public void setContextLoader(java.lang.ClassLoader cxtLoader)
public int getSessionCookies()
public void setSessionCookies(int sessionCookies)
public int getInvalidateSessionPolicy()
public void setInvalidateSessionPolicy(int invalidateSessionPolicy)
public int getReplicationType()
public int getReplicationGranularity()
public void setReplicationGranularity(int replicationGranularity)
public void importXml(org.w3c.dom.Element element) throws DeploymentException (src)
MetaData (src)
importXml
in interface XmlLoadable (src)
importXml
in class MetaData (src)
element
- The element to import.
DeploymentException (src)
- Unrecognized root tag.protected void importWebXml(org.w3c.dom.Element webApp) throws DeploymentException (src)
DeploymentException (src)
protected void importJBossWebXml(org.w3c.dom.Element jbossWeb) throws DeploymentException (src)
DeploymentException (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |