|
||||||||||
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
public class 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 | |
---|---|
String |
getConfigFile()
|
String |
getConfigName()
|
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. |
boolean |
getReplicationFieldBatchMode()
|
int |
getReplicationGranularity()
|
int |
getReplicationType()
|
Iterator |
getResourceEnvReferences()
Return an iterator of the resource-ref mappings. |
Iterator |
getResourceReferences()
Return an iterator of the resource-ref mappings. |
Map |
getRunAsIdentity()
|
org.jboss.security.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()
|
List |
getSecurityRoleRefs(String servletName)
|
Map |
getSecurityRoles()
Get the optional map of security role/user mapping. |
Iterator |
getServiceReferences()
Return an iterator of the service-ref mappings. |
Map |
getServletClassMap()
Get the servlet-name/servlet-class mapping from the web.xml descriptor |
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. |
boolean |
isWebServiceDeployment()
|
void |
mergeSecurityRoles(Map applRoles)
Merge the security role/principal mapping defined in jboss-web.xml with the one defined at jboss-app.xml. |
void |
setConfigFile(String configFile)
|
void |
setConfigName(String configName)
|
void |
setContextLoader(ClassLoader cxtLoader)
Make sure this is called during performDeploy |
void |
setContextRoot(String contextRoot)
|
void |
setDepends(Collection depends)
|
void |
setDistributable(boolean distributable)
Mark the web-app as distributable |
void |
setEjbLocalReferences(Map ejbReferences)
|
void |
setEjbReferences(Map ejbReferences)
|
void |
setENCLoader(ClassLoader encLoader)
|
void |
setEnvironmentEntries(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(String jaccContextID)
|
void |
setJava2ClassLoadingCompliance(boolean flag)
|
void |
setLoaderConfig(org.jboss.mx.loading.LoaderRepositoryFactory.LoaderRepositoryConfig loaderConfig)
|
void |
setMessageDestination(Map messageDestinations)
|
void |
setMessageDestinationReferences(Map messageDestinationReferences)
|
void |
setReplicationGranularity(int replicationGranularity)
|
void |
setResourceClassLoader(URLClassLoader resourceCl)
Set the ClassLoader to load additional resources |
void |
setResourceEnvReferences(Map resourceReferences)
|
void |
setResourceReferences(Map resourceReferences)
|
void |
setRunAsIdentity(Map runAsIdentity)
The jboss-web.xml servlet/run-as |
void |
setSecurityConstraints(Collection securityContraints)
|
void |
setSecurityDomain(String securityDomain)
Set the security domain for this web application |
void |
setSecurityRoleReferences(Map securityRoleReferences)
|
void |
setSecurityRoles(Map securityRoles)
|
void |
setServiceReferences(Map serviceReferences)
|
void |
setServletMappings(Map servletMappings)
servlet-mapping/serlvet-name to url-pattern mapping |
void |
setSessionCookies(int sessionCookies)
|
void |
setVirtualHosts(Collection virtualHosts)
|
void |
setWebServiceDeployment(boolean webServiceDeployment)
|
void |
setWsdlPublishLocationMap(Map wsdlPublishLocationMap)
|
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 void setEnvironmentEntries(Collection environmentEntries)
environmentEntries
- - Collectionpublic Iterator getEjbReferences()
public void setEjbReferences(Map ejbReferences)
ejbReferences
- - Mappublic Iterator getEjbLocalReferences()
public void setEjbLocalReferences(Map ejbReferences)
ejbReferences
- - Mappublic Iterator getResourceReferences()
public void setResourceReferences(Map resourceReferences)
resourceReferences
- - Mappublic Iterator getResourceEnvReferences()
public void setResourceEnvReferences(Map resourceReferences)
resourceReferences
- - Mappublic Iterator getMessageDestinationReferences()
public void setMessageDestinationReferences(Map messageDestinationReferences)
messageDestinationReferences
- - Mappublic MessageDestinationMetaData getMessageDestination(String name)
name
- the name of the message destination
public void setMessageDestination(Map messageDestinations)
messageDestinations
- - Mappublic Iterator getServiceReferences()
public void setServiceReferences(Map serviceReferences)
serviceReferences
- - Mappublic String getContextRoot()
public void setContextRoot(String contextRoot)
public String getConfigFile()
public void setConfigFile(String configFile)
public String getConfigName()
public void setConfigName(String configName)
public String getWsdlPublishLocationByName(String name)
public void setWsdlPublishLocationMap(Map wsdlPublishLocationMap)
wsdlPublishLocationMap
- - Mappublic boolean isWebServiceDeployment()
public void setWebServiceDeployment(boolean webServiceDeployment)
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 void setSecurityConstraints(Collection securityContraints)
securityContraints
- - Collectionpublic Map getSecurityRoleRefs()
public List getSecurityRoleRefs(String servletName)
servletName
-
public void setSecurityRoleReferences(Map securityRoleReferences)
securityRoleReferences
- - public Set getSecurityRoleNames()
public Map getSecurityRoles()
public void setSecurityRoles(Map securityRoles)
securityRoles
- - Mappublic Set getSecurityRoleNamesByPrincipal(String userName)
userName
-
public org.jboss.security.RunAsIdentity getRunAsIdentity(String servletName)
servletName
- - the servlet-name from the web.xml
public Map getRunAsIdentity()
public void setRunAsIdentity(Map runAsIdentity)
public HashMap getServletMappings()
public void setServletMappings(Map servletMappings)
servletMappings
- - Mappublic Set getServletNames()
public Map getServletClassMap()
public void mergeSecurityRoles(Map applRoles)
public Iterator getVirtualHosts()
public void setVirtualHosts(Collection virtualHosts)
virtualHosts
- - Collectionpublic boolean getDistributable()
public void setDistributable(boolean distributable)
distributable
- - true for distributablepublic Collection getDepends()
public void setDepends(Collection depends)
depends
- - Collectionpublic 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 void setSessionCookies(int sessionCookies)
public int getInvalidateSessionPolicy()
public void setInvalidateSessionPolicy(int invalidateSessionPolicy)
public int getReplicationType()
public int getReplicationGranularity()
public void setReplicationGranularity(int replicationGranularity)
public boolean getReplicationFieldBatchMode()
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 |