org.jboss.shrinkwrap.descriptor.api.jbossweb60
Interface JbossWebDescriptor

All Superinterfaces:
Descriptor, DescriptorNamespace<JbossWebDescriptor>

public interface JbossWebDescriptor
extends Descriptor, DescriptorNamespace<JbossWebDescriptor>

This deployment descriptor provides the functionalities as described in the specification

Example:

JbossWebDescriptor descriptor = Descriptors.create(JbossWebDescriptor.class);

Since:
Generation date :2013-01-26T19:27:01.083+01:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 JbossWebDescriptor contextRoot(String contextRoot)
          Sets the context-root element
 DataSourceType<JbossWebDescriptor> createDataSource()
          Creates a new data-source element
 EjbLocalRefType<JbossWebDescriptor> createEjbLocalRef()
          Creates a new ejb-local-ref element
 EjbRefType<JbossWebDescriptor> createEjbRef()
          Creates a new ejb-ref element
 EnvEntryType<JbossWebDescriptor> createEnvEntry()
          Creates a new env-entry element
 MessageDestinationType<JbossWebDescriptor> createMessageDestination()
          Creates a new message-destination element
 MessageDestinationRefType<JbossWebDescriptor> createMessageDestinationRef()
          Creates a new message-destination-ref element
 PersistenceContextRefType<JbossWebDescriptor> createPersistenceContextRef()
          Creates a new persistence-context-ref element
 PersistenceUnitRefType<JbossWebDescriptor> createPersistenceUnitRef()
          Creates a new persistence-unit-ref element
 LifecycleCallbackType<JbossWebDescriptor> createPostConstruct()
          Creates a new post-construct element
 LifecycleCallbackType<JbossWebDescriptor> createPreDestroy()
          Creates a new pre-destroy element
 ResourceEnvRefType<JbossWebDescriptor> createResourceEnvRef()
          Creates a new resource-env-ref element
 ResourceRefType<JbossWebDescriptor> createResourceRef()
          Creates a new resource-ref element
 SecurityRoleType<JbossWebDescriptor> createSecurityRole()
          Creates a new security-role element
 ServiceRefType<JbossWebDescriptor> createServiceRef()
          Creates a new service-ref element
 ServletType<JbossWebDescriptor> createServlet()
          Creates a new servlet element
 WebserviceDescriptionType<JbossWebDescriptor> createWebserviceDescription()
          Creates a new webservice-description element
 JbossWebDescriptor depends(String... values)
          Creates for all String objects representing depends elements, a new depends element
 List<DataSourceType<JbossWebDescriptor>> getAllDataSource()
          Returns all data-source elements
 List<String> getAllDepends()
          Returns all depends elements
 List<EjbLocalRefType<JbossWebDescriptor>> getAllEjbLocalRef()
          Returns all ejb-local-ref elements
 List<EjbRefType<JbossWebDescriptor>> getAllEjbRef()
          Returns all ejb-ref elements
 List<EnvEntryType<JbossWebDescriptor>> getAllEnvEntry()
          Returns all env-entry elements
 List<MessageDestinationType<JbossWebDescriptor>> getAllMessageDestination()
          Returns all message-destination elements
 List<MessageDestinationRefType<JbossWebDescriptor>> getAllMessageDestinationRef()
          Returns all message-destination-ref elements
 List<PersistenceContextRefType<JbossWebDescriptor>> getAllPersistenceContextRef()
          Returns all persistence-context-ref elements
 List<PersistenceUnitRefType<JbossWebDescriptor>> getAllPersistenceUnitRef()
          Returns all persistence-unit-ref elements
 List<LifecycleCallbackType<JbossWebDescriptor>> getAllPostConstruct()
          Returns all post-construct elements
 List<LifecycleCallbackType<JbossWebDescriptor>> getAllPreDestroy()
          Returns all pre-destroy elements
 List<ResourceEnvRefType<JbossWebDescriptor>> getAllResourceEnvRef()
          Returns all resource-env-ref elements
 List<ResourceRefType<JbossWebDescriptor>> getAllResourceRef()
          Returns all resource-ref elements
 List<SecurityRoleType<JbossWebDescriptor>> getAllSecurityRole()
          Returns all security-role elements
 List<ServiceRefType<JbossWebDescriptor>> getAllServiceRef()
          Returns all service-ref elements
 List<ServletType<JbossWebDescriptor>> getAllServlet()
          Returns all servlet elements
 List<String> getAllVirtualHost()
          Returns all virtual-host elements
 List<WebserviceDescriptionType<JbossWebDescriptor>> getAllWebserviceDescription()
          Returns all webservice-description elements
 String getContextRoot()
          Returns the context-root element
 GenericBooleanType getJaccStarRoleAllow()
          Returns the jacc-star-role-allow element
 String getJaccStarRoleAllowAsString()
          Returns the jacc-star-role-allow element
 Integer getMaxActiveSessions()
          Returns the max-active-sessions element
 AnnotationType<JbossWebDescriptor> getOrCreateAnnotation()
          If not already created, a new annotation element with the given value will be created.
 ClassLoadingType<JbossWebDescriptor> getOrCreateClassLoading()
          If not already created, a new class-loading element with the given value will be created.
 DataSourceType<JbossWebDescriptor> getOrCreateDataSource()
          If not already created, a new data-source element will be created and returned.
 EjbLocalRefType<JbossWebDescriptor> getOrCreateEjbLocalRef()
          If not already created, a new ejb-local-ref element will be created and returned.
 EjbRefType<JbossWebDescriptor> getOrCreateEjbRef()
          If not already created, a new ejb-ref element will be created and returned.
 EnvEntryType<JbossWebDescriptor> getOrCreateEnvEntry()
          If not already created, a new env-entry element will be created and returned.
 MessageDestinationType<JbossWebDescriptor> getOrCreateMessageDestination()
          If not already created, a new message-destination element will be created and returned.
 MessageDestinationRefType<JbossWebDescriptor> getOrCreateMessageDestinationRef()
          If not already created, a new message-destination-ref element will be created and returned.
 PassivationConfigType<JbossWebDescriptor> getOrCreatePassivationConfig()
          If not already created, a new passivation-config element with the given value will be created.
 PersistenceContextRefType<JbossWebDescriptor> getOrCreatePersistenceContextRef()
          If not already created, a new persistence-context-ref element will be created and returned.
 PersistenceUnitRefType<JbossWebDescriptor> getOrCreatePersistenceUnitRef()
          If not already created, a new persistence-unit-ref element will be created and returned.
 LifecycleCallbackType<JbossWebDescriptor> getOrCreatePostConstruct()
          If not already created, a new post-construct element will be created and returned.
 LifecycleCallbackType<JbossWebDescriptor> getOrCreatePreDestroy()
          If not already created, a new pre-destroy element will be created and returned.
 ReplicationConfigType<JbossWebDescriptor> getOrCreateReplicationConfig()
          If not already created, a new replication-config element with the given value will be created.
 ResourceEnvRefType<JbossWebDescriptor> getOrCreateResourceEnvRef()
          If not already created, a new resource-env-ref element will be created and returned.
 ResourceRefType<JbossWebDescriptor> getOrCreateResourceRef()
          If not already created, a new resource-ref element will be created and returned.
 SecurityRoleType<JbossWebDescriptor> getOrCreateSecurityRole()
          If not already created, a new security-role element will be created and returned.
 ServiceRefType<JbossWebDescriptor> getOrCreateServiceRef()
          If not already created, a new service-ref element will be created and returned.
 ServletType<JbossWebDescriptor> getOrCreateServlet()
          If not already created, a new servlet element will be created and returned.
 WebserviceDescriptionType<JbossWebDescriptor> getOrCreateWebserviceDescription()
          If not already created, a new webservice-description element will be created and returned.
 String getSecurityDomain()
          Returns the security-domain element
 GenericBooleanType getUseSessionCookies()
          Returns the use-session-cookies element
 String getUseSessionCookiesAsString()
          Returns the use-session-cookies element
 JbossWebVersionType getVersion()
          Returns the version attribute
 String getVersionAsString()
          Returns the version attribute
 JbossWebDescriptor jaccStarRoleAllow(GenericBooleanType jaccStarRoleAllow)
          Sets the jacc-star-role-allow element
 JbossWebDescriptor jaccStarRoleAllow(String jaccStarRoleAllow)
          Sets the jacc-star-role-allow element
 JbossWebDescriptor maxActiveSessions(Integer maxActiveSessions)
          Sets the max-active-sessions element
 JbossWebDescriptor removeAllDataSource()
          Removes all data-source elements
 JbossWebDescriptor removeAllDepends()
          Removes the depends element
 JbossWebDescriptor removeAllEjbLocalRef()
          Removes all ejb-local-ref elements
 JbossWebDescriptor removeAllEjbRef()
          Removes all ejb-ref elements
 JbossWebDescriptor removeAllEnvEntry()
          Removes all env-entry elements
 JbossWebDescriptor removeAllMessageDestination()
          Removes all message-destination elements
 JbossWebDescriptor removeAllMessageDestinationRef()
          Removes all message-destination-ref elements
 JbossWebDescriptor removeAllPersistenceContextRef()
          Removes all persistence-context-ref elements
 JbossWebDescriptor removeAllPersistenceUnitRef()
          Removes all persistence-unit-ref elements
 JbossWebDescriptor removeAllPostConstruct()
          Removes all post-construct elements
 JbossWebDescriptor removeAllPreDestroy()
          Removes all pre-destroy elements
 JbossWebDescriptor removeAllResourceEnvRef()
          Removes all resource-env-ref elements
 JbossWebDescriptor removeAllResourceRef()
          Removes all resource-ref elements
 JbossWebDescriptor removeAllSecurityRole()
          Removes all security-role elements
 JbossWebDescriptor removeAllServiceRef()
          Removes all service-ref elements
 JbossWebDescriptor removeAllServlet()
          Removes all servlet elements
 JbossWebDescriptor removeAllVirtualHost()
          Removes the virtual-host element
 JbossWebDescriptor removeAllWebserviceDescription()
          Removes all webservice-description elements
 JbossWebDescriptor removeAnnotation()
          Removes the annotation element
 JbossWebDescriptor removeClassLoading()
          Removes the class-loading element
 JbossWebDescriptor removeContextRoot()
          Removes the context-root element
 JbossWebDescriptor removeJaccStarRoleAllow()
          Removes the jacc-star-role-allow attribute
 JbossWebDescriptor removeMaxActiveSessions()
          Removes the max-active-sessions element
 JbossWebDescriptor removePassivationConfig()
          Removes the passivation-config element
 JbossWebDescriptor removeReplicationConfig()
          Removes the replication-config element
 JbossWebDescriptor removeSecurityDomain()
          Removes the security-domain element
 JbossWebDescriptor removeUseSessionCookies()
          Removes the use-session-cookies attribute
 JbossWebDescriptor removeVersion()
          Removes the version attribute
 JbossWebDescriptor securityDomain(String securityDomain)
          Sets the security-domain element
 JbossWebDescriptor useSessionCookies(GenericBooleanType useSessionCookies)
          Sets the use-session-cookies element
 JbossWebDescriptor useSessionCookies(String useSessionCookies)
          Sets the use-session-cookies element
 JbossWebDescriptor version(JbossWebVersionType version)
          Sets the version attribute
 JbossWebDescriptor version(String version)
          Sets the version attribute
 JbossWebDescriptor virtualHost(String... values)
          Creates for all String objects representing virtual-host elements, a new virtual-host element
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Descriptor
exportAsString, exportTo, getDescriptorName
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace
addDefaultNamespaces, addNamespace, getNamespaces, removeAllNamespaces
 

Method Detail

getOrCreateEnvEntry

EnvEntryType<JbossWebDescriptor> getOrCreateEnvEntry()
If not already created, a new env-entry element will be created and returned. Otherwise, the first existing env-entry element will be returned.

Returns:
the instance defined for the element env-entry

createEnvEntry

EnvEntryType<JbossWebDescriptor> createEnvEntry()
Creates a new env-entry element

Returns:
the new created instance of EnvEntryType

getAllEnvEntry

List<EnvEntryType<JbossWebDescriptor>> getAllEnvEntry()
Returns all env-entry elements

Returns:
list of env-entry

removeAllEnvEntry

JbossWebDescriptor removeAllEnvEntry()
Removes all env-entry elements

Returns:
the current instance of EnvEntryType

getOrCreateEjbRef

EjbRefType<JbossWebDescriptor> getOrCreateEjbRef()
If not already created, a new ejb-ref element will be created and returned. Otherwise, the first existing ejb-ref element will be returned.

Returns:
the instance defined for the element ejb-ref

createEjbRef

EjbRefType<JbossWebDescriptor> createEjbRef()
Creates a new ejb-ref element

Returns:
the new created instance of EjbRefType

getAllEjbRef

List<EjbRefType<JbossWebDescriptor>> getAllEjbRef()
Returns all ejb-ref elements

Returns:
list of ejb-ref

removeAllEjbRef

JbossWebDescriptor removeAllEjbRef()
Removes all ejb-ref elements

Returns:
the current instance of EjbRefType

getOrCreateEjbLocalRef

EjbLocalRefType<JbossWebDescriptor> getOrCreateEjbLocalRef()
If not already created, a new ejb-local-ref element will be created and returned. Otherwise, the first existing ejb-local-ref element will be returned.

Returns:
the instance defined for the element ejb-local-ref

createEjbLocalRef

EjbLocalRefType<JbossWebDescriptor> createEjbLocalRef()
Creates a new ejb-local-ref element

Returns:
the new created instance of EjbLocalRefType

getAllEjbLocalRef

List<EjbLocalRefType<JbossWebDescriptor>> getAllEjbLocalRef()
Returns all ejb-local-ref elements

Returns:
list of ejb-local-ref

removeAllEjbLocalRef

JbossWebDescriptor removeAllEjbLocalRef()
Removes all ejb-local-ref elements

Returns:
the current instance of EjbLocalRefType

getOrCreateResourceRef

ResourceRefType<JbossWebDescriptor> getOrCreateResourceRef()
If not already created, a new resource-ref element will be created and returned. Otherwise, the first existing resource-ref element will be returned.

Returns:
the instance defined for the element resource-ref

createResourceRef

ResourceRefType<JbossWebDescriptor> createResourceRef()
Creates a new resource-ref element

Returns:
the new created instance of ResourceRefType

getAllResourceRef

List<ResourceRefType<JbossWebDescriptor>> getAllResourceRef()
Returns all resource-ref elements

Returns:
list of resource-ref

removeAllResourceRef

JbossWebDescriptor removeAllResourceRef()
Removes all resource-ref elements

Returns:
the current instance of ResourceRefType

getOrCreateResourceEnvRef

ResourceEnvRefType<JbossWebDescriptor> getOrCreateResourceEnvRef()
If not already created, a new resource-env-ref element will be created and returned. Otherwise, the first existing resource-env-ref element will be returned.

Returns:
the instance defined for the element resource-env-ref

createResourceEnvRef

ResourceEnvRefType<JbossWebDescriptor> createResourceEnvRef()
Creates a new resource-env-ref element

Returns:
the new created instance of ResourceEnvRefType

getAllResourceEnvRef

List<ResourceEnvRefType<JbossWebDescriptor>> getAllResourceEnvRef()
Returns all resource-env-ref elements

Returns:
list of resource-env-ref

removeAllResourceEnvRef

JbossWebDescriptor removeAllResourceEnvRef()
Removes all resource-env-ref elements

Returns:
the current instance of ResourceEnvRefType

getOrCreateMessageDestinationRef

MessageDestinationRefType<JbossWebDescriptor> getOrCreateMessageDestinationRef()
If not already created, a new message-destination-ref element will be created and returned. Otherwise, the first existing message-destination-ref element will be returned.

Returns:
the instance defined for the element message-destination-ref

createMessageDestinationRef

MessageDestinationRefType<JbossWebDescriptor> createMessageDestinationRef()
Creates a new message-destination-ref element

Returns:
the new created instance of MessageDestinationRefType

getAllMessageDestinationRef

List<MessageDestinationRefType<JbossWebDescriptor>> getAllMessageDestinationRef()
Returns all message-destination-ref elements

Returns:
list of message-destination-ref

removeAllMessageDestinationRef

JbossWebDescriptor removeAllMessageDestinationRef()
Removes all message-destination-ref elements

Returns:
the current instance of MessageDestinationRefType

getOrCreatePersistenceContextRef

PersistenceContextRefType<JbossWebDescriptor> getOrCreatePersistenceContextRef()
If not already created, a new persistence-context-ref element will be created and returned. Otherwise, the first existing persistence-context-ref element will be returned.

Returns:
the instance defined for the element persistence-context-ref

createPersistenceContextRef

PersistenceContextRefType<JbossWebDescriptor> createPersistenceContextRef()
Creates a new persistence-context-ref element

Returns:
the new created instance of PersistenceContextRefType

getAllPersistenceContextRef

List<PersistenceContextRefType<JbossWebDescriptor>> getAllPersistenceContextRef()
Returns all persistence-context-ref elements

Returns:
list of persistence-context-ref

removeAllPersistenceContextRef

JbossWebDescriptor removeAllPersistenceContextRef()
Removes all persistence-context-ref elements

Returns:
the current instance of PersistenceContextRefType

getOrCreatePersistenceUnitRef

PersistenceUnitRefType<JbossWebDescriptor> getOrCreatePersistenceUnitRef()
If not already created, a new persistence-unit-ref element will be created and returned. Otherwise, the first existing persistence-unit-ref element will be returned.

Returns:
the instance defined for the element persistence-unit-ref

createPersistenceUnitRef

PersistenceUnitRefType<JbossWebDescriptor> createPersistenceUnitRef()
Creates a new persistence-unit-ref element

Returns:
the new created instance of PersistenceUnitRefType

getAllPersistenceUnitRef

List<PersistenceUnitRefType<JbossWebDescriptor>> getAllPersistenceUnitRef()
Returns all persistence-unit-ref elements

Returns:
list of persistence-unit-ref

removeAllPersistenceUnitRef

JbossWebDescriptor removeAllPersistenceUnitRef()
Removes all persistence-unit-ref elements

Returns:
the current instance of PersistenceUnitRefType

getOrCreatePostConstruct

LifecycleCallbackType<JbossWebDescriptor> getOrCreatePostConstruct()
If not already created, a new post-construct element will be created and returned. Otherwise, the first existing post-construct element will be returned.

Returns:
the instance defined for the element post-construct

createPostConstruct

LifecycleCallbackType<JbossWebDescriptor> createPostConstruct()
Creates a new post-construct element

Returns:
the new created instance of LifecycleCallbackType

getAllPostConstruct

List<LifecycleCallbackType<JbossWebDescriptor>> getAllPostConstruct()
Returns all post-construct elements

Returns:
list of post-construct

removeAllPostConstruct

JbossWebDescriptor removeAllPostConstruct()
Removes all post-construct elements

Returns:
the current instance of LifecycleCallbackType

getOrCreatePreDestroy

LifecycleCallbackType<JbossWebDescriptor> getOrCreatePreDestroy()
If not already created, a new pre-destroy element will be created and returned. Otherwise, the first existing pre-destroy element will be returned.

Returns:
the instance defined for the element pre-destroy

createPreDestroy

LifecycleCallbackType<JbossWebDescriptor> createPreDestroy()
Creates a new pre-destroy element

Returns:
the new created instance of LifecycleCallbackType

getAllPreDestroy

List<LifecycleCallbackType<JbossWebDescriptor>> getAllPreDestroy()
Returns all pre-destroy elements

Returns:
list of pre-destroy

removeAllPreDestroy

JbossWebDescriptor removeAllPreDestroy()
Removes all pre-destroy elements

Returns:
the current instance of LifecycleCallbackType

getOrCreateDataSource

DataSourceType<JbossWebDescriptor> getOrCreateDataSource()
If not already created, a new data-source element will be created and returned. Otherwise, the first existing data-source element will be returned.

Returns:
the instance defined for the element data-source

createDataSource

DataSourceType<JbossWebDescriptor> createDataSource()
Creates a new data-source element

Returns:
the new created instance of DataSourceType

getAllDataSource

List<DataSourceType<JbossWebDescriptor>> getAllDataSource()
Returns all data-source elements

Returns:
list of data-source

removeAllDataSource

JbossWebDescriptor removeAllDataSource()
Removes all data-source elements

Returns:
the current instance of DataSourceType

getOrCreateServiceRef

ServiceRefType<JbossWebDescriptor> getOrCreateServiceRef()
If not already created, a new service-ref element will be created and returned. Otherwise, the first existing service-ref element will be returned.

Returns:
the instance defined for the element service-ref

createServiceRef

ServiceRefType<JbossWebDescriptor> createServiceRef()
Creates a new service-ref element

Returns:
the new created instance of ServiceRefType

getAllServiceRef

List<ServiceRefType<JbossWebDescriptor>> getAllServiceRef()
Returns all service-ref elements

Returns:
list of service-ref

removeAllServiceRef

JbossWebDescriptor removeAllServiceRef()
Removes all service-ref elements

Returns:
the current instance of ServiceRefType

getOrCreateClassLoading

ClassLoadingType<JbossWebDescriptor> getOrCreateClassLoading()
If not already created, a new class-loading element with the given value will be created. Otherwise, the existing class-loading element will be returned.

Returns:
a new or existing instance of ClassLoadingType

removeClassLoading

JbossWebDescriptor removeClassLoading()
Removes the class-loading element

Returns:
the current instance of JbossWebDescriptor

securityDomain

JbossWebDescriptor securityDomain(String securityDomain)
Sets the security-domain element

Parameters:
securityDomain - the value for the element security-domain
Returns:
the current instance of JbossWebDescriptor

getSecurityDomain

String getSecurityDomain()
Returns the security-domain element

Returns:
the node defined for the element security-domain

removeSecurityDomain

JbossWebDescriptor removeSecurityDomain()
Removes the security-domain element

Returns:
the current instance of JbossWebDescriptor

jaccStarRoleAllow

JbossWebDescriptor jaccStarRoleAllow(GenericBooleanType jaccStarRoleAllow)
Sets the jacc-star-role-allow element

Parameters:
jaccStarRoleAllow - the value for the element jacc-star-role-allow
Returns:
the current instance of JbossWebDescriptor

jaccStarRoleAllow

JbossWebDescriptor jaccStarRoleAllow(String jaccStarRoleAllow)
Sets the jacc-star-role-allow element

Parameters:
jaccStarRoleAllow - the value for the element jacc-star-role-allow
Returns:
the current instance of JbossWebDescriptor

getJaccStarRoleAllow

GenericBooleanType getJaccStarRoleAllow()
Returns the jacc-star-role-allow element

Returns:
the value found for the element jacc-star-role-allow

getJaccStarRoleAllowAsString

String getJaccStarRoleAllowAsString()
Returns the jacc-star-role-allow element

Returns:
the value found for the element jacc-star-role-allow

removeJaccStarRoleAllow

JbossWebDescriptor removeJaccStarRoleAllow()
Removes the jacc-star-role-allow attribute

Returns:
the current instance of JbossWebDescriptor

contextRoot

JbossWebDescriptor contextRoot(String contextRoot)
Sets the context-root element

Parameters:
contextRoot - the value for the element context-root
Returns:
the current instance of JbossWebDescriptor

getContextRoot

String getContextRoot()
Returns the context-root element

Returns:
the node defined for the element context-root

removeContextRoot

JbossWebDescriptor removeContextRoot()
Removes the context-root element

Returns:
the current instance of JbossWebDescriptor

virtualHost

JbossWebDescriptor virtualHost(String... values)
Creates for all String objects representing virtual-host elements, a new virtual-host element

Parameters:
values - list of virtual-host objects
Returns:
the current instance of JbossWebDescriptor

getAllVirtualHost

List<String> getAllVirtualHost()
Returns all virtual-host elements

Returns:
list of virtual-host

removeAllVirtualHost

JbossWebDescriptor removeAllVirtualHost()
Removes the virtual-host element

Returns:
the current instance of JbossWebDescriptor

useSessionCookies

JbossWebDescriptor useSessionCookies(GenericBooleanType useSessionCookies)
Sets the use-session-cookies element

Parameters:
useSessionCookies - the value for the element use-session-cookies
Returns:
the current instance of JbossWebDescriptor

useSessionCookies

JbossWebDescriptor useSessionCookies(String useSessionCookies)
Sets the use-session-cookies element

Parameters:
useSessionCookies - the value for the element use-session-cookies
Returns:
the current instance of JbossWebDescriptor

getUseSessionCookies

GenericBooleanType getUseSessionCookies()
Returns the use-session-cookies element

Returns:
the value found for the element use-session-cookies

getUseSessionCookiesAsString

String getUseSessionCookiesAsString()
Returns the use-session-cookies element

Returns:
the value found for the element use-session-cookies

removeUseSessionCookies

JbossWebDescriptor removeUseSessionCookies()
Removes the use-session-cookies attribute

Returns:
the current instance of JbossWebDescriptor

getOrCreateReplicationConfig

ReplicationConfigType<JbossWebDescriptor> getOrCreateReplicationConfig()
If not already created, a new replication-config element with the given value will be created. Otherwise, the existing replication-config element will be returned.

Returns:
a new or existing instance of ReplicationConfigType

removeReplicationConfig

JbossWebDescriptor removeReplicationConfig()
Removes the replication-config element

Returns:
the current instance of JbossWebDescriptor

getOrCreateSecurityRole

SecurityRoleType<JbossWebDescriptor> getOrCreateSecurityRole()
If not already created, a new security-role element will be created and returned. Otherwise, the first existing security-role element will be returned.

Returns:
the instance defined for the element security-role

createSecurityRole

SecurityRoleType<JbossWebDescriptor> createSecurityRole()
Creates a new security-role element

Returns:
the new created instance of SecurityRoleType

getAllSecurityRole

List<SecurityRoleType<JbossWebDescriptor>> getAllSecurityRole()
Returns all security-role elements

Returns:
list of security-role

removeAllSecurityRole

JbossWebDescriptor removeAllSecurityRole()
Removes all security-role elements

Returns:
the current instance of SecurityRoleType

getOrCreateMessageDestination

MessageDestinationType<JbossWebDescriptor> getOrCreateMessageDestination()
If not already created, a new message-destination element will be created and returned. Otherwise, the first existing message-destination element will be returned.

Returns:
the instance defined for the element message-destination

createMessageDestination

MessageDestinationType<JbossWebDescriptor> createMessageDestination()
Creates a new message-destination element

Returns:
the new created instance of MessageDestinationType

getAllMessageDestination

List<MessageDestinationType<JbossWebDescriptor>> getAllMessageDestination()
Returns all message-destination elements

Returns:
list of message-destination

removeAllMessageDestination

JbossWebDescriptor removeAllMessageDestination()
Removes all message-destination elements

Returns:
the current instance of MessageDestinationType

getOrCreateWebserviceDescription

WebserviceDescriptionType<JbossWebDescriptor> getOrCreateWebserviceDescription()
If not already created, a new webservice-description element will be created and returned. Otherwise, the first existing webservice-description element will be returned.

Returns:
the instance defined for the element webservice-description

createWebserviceDescription

WebserviceDescriptionType<JbossWebDescriptor> createWebserviceDescription()
Creates a new webservice-description element

Returns:
the new created instance of WebserviceDescriptionType

getAllWebserviceDescription

List<WebserviceDescriptionType<JbossWebDescriptor>> getAllWebserviceDescription()
Returns all webservice-description elements

Returns:
list of webservice-description

removeAllWebserviceDescription

JbossWebDescriptor removeAllWebserviceDescription()
Removes all webservice-description elements

Returns:
the current instance of WebserviceDescriptionType

depends

JbossWebDescriptor depends(String... values)
Creates for all String objects representing depends elements, a new depends element

Parameters:
values - list of depends objects
Returns:
the current instance of JbossWebDescriptor

getAllDepends

List<String> getAllDepends()
Returns all depends elements

Returns:
list of depends

removeAllDepends

JbossWebDescriptor removeAllDepends()
Removes the depends element

Returns:
the current instance of JbossWebDescriptor

getOrCreateServlet

ServletType<JbossWebDescriptor> getOrCreateServlet()
If not already created, a new servlet element will be created and returned. Otherwise, the first existing servlet element will be returned.

Returns:
the instance defined for the element servlet

createServlet

ServletType<JbossWebDescriptor> createServlet()
Creates a new servlet element

Returns:
the new created instance of ServletType

getAllServlet

List<ServletType<JbossWebDescriptor>> getAllServlet()
Returns all servlet elements

Returns:
list of servlet

removeAllServlet

JbossWebDescriptor removeAllServlet()
Removes all servlet elements

Returns:
the current instance of ServletType

maxActiveSessions

JbossWebDescriptor maxActiveSessions(Integer maxActiveSessions)
Sets the max-active-sessions element

Parameters:
maxActiveSessions - the value for the element max-active-sessions
Returns:
the current instance of JbossWebDescriptor

getMaxActiveSessions

Integer getMaxActiveSessions()
Returns the max-active-sessions element

Returns:
the node defined for the element max-active-sessions

removeMaxActiveSessions

JbossWebDescriptor removeMaxActiveSessions()
Removes the max-active-sessions element

Returns:
the current instance of JbossWebDescriptor

getOrCreatePassivationConfig

PassivationConfigType<JbossWebDescriptor> getOrCreatePassivationConfig()
If not already created, a new passivation-config element with the given value will be created. Otherwise, the existing passivation-config element will be returned.

Returns:
a new or existing instance of PassivationConfigType

removePassivationConfig

JbossWebDescriptor removePassivationConfig()
Removes the passivation-config element

Returns:
the current instance of JbossWebDescriptor

getOrCreateAnnotation

AnnotationType<JbossWebDescriptor> getOrCreateAnnotation()
If not already created, a new annotation element with the given value will be created. Otherwise, the existing annotation element will be returned.

Returns:
a new or existing instance of AnnotationType

removeAnnotation

JbossWebDescriptor removeAnnotation()
Removes the annotation element

Returns:
the current instance of JbossWebDescriptor

version

JbossWebDescriptor version(JbossWebVersionType version)
Sets the version attribute

Parameters:
version - the value for the attribute version
Returns:
the current instance of JbossWebDescriptor

version

JbossWebDescriptor version(String version)
Sets the version attribute

Parameters:
version - the value for the attribute version
Returns:
the current instance of JbossWebDescriptor

getVersion

JbossWebVersionType getVersion()
Returns the version attribute

Returns:
the value defined for the attribute version

getVersionAsString

String getVersionAsString()
Returns the version attribute

Returns:
the value found for the element version

removeVersion

JbossWebDescriptor removeVersion()
Removes the version attribute

Returns:
the current instance of JbossWebDescriptor


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.