Class StoreDescription
java.lang.Object
org.apache.catalina.storeconfig.StoreDescription
Bean of a StoreDescription
<Description
tag="Context"
standard="true"
default="true"
externalAllowed="true"
storeSeparate="true"
backup="true"
children="true"
tagClass="org.apache.catalina.core.StandardContext"
storeFactoryClass="org.apache.catalina.storeconfig.StandardContextSF"
storeAppenderClass="org.apache.catalina.storeconfig.StoreContextAppender">
<TransientAttribute>available</TransientAttribute>
<TransientAttribute>configFile</TransientAttribute>
<TransientAttribute>configured</TransientAttribute>
<TransientAttribute>displayName</TransientAttribute>
<TransientAttribute>distributable</TransientAttribute>
<TransientAttribute>domain</TransientAttribute>
<TransientAttribute>engineName</TransientAttribute>
<TransientAttribute>name</TransientAttribute>
<TransientAttribute>publicId</TransientAttribute>
<TransientAttribute>replaceWelcomeFiles</TransientAttribute>
<TransientAttribute>saveConfig</TransientAttribute>
<TransientAttribute>sessionTimeout</TransientAttribute>
<TransientAttribute>startupTime</TransientAttribute>
<TransientAttribute>tldScanTime</TransientAttribute>
</Description>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransientAttribute(String attribute) Adds an attribute name to the list of transient attributes that should not be persisted.voidaddTransientChild(String classname) Adds a child class name to the list of transient children that should not be persisted.getId()Return the real id or TagClassReturns the StoreFactory instance used to create objects for this description.Returns the fully qualified class name of the StoreFactory implementation.Returns the fully qualified class name of the StoreWriter implementation.getTag()Returns the XML tag name for this description.Returns the fully qualified class name associated with this description's tag.Returns the list of attribute names that should not be persisted.Returns the list of child class names that should not be persisted.booleanIndicates whether the attributes of this component should be stored.booleanisBackup()Indicates whether a backup of the configuration should be created.booleanIndicates whether child components should be stored.booleanIndicates whether this description represents a default component.booleanIndicates whether external (separate file) storage is allowed for this description.booleanIndicates whether this description is restricted to external storage only.booleanIndicates whether this description represents a standard component.booleanIndicates whether this component should be stored in a separate file.booleanisTransientAttribute(String attribute) Is attribute transient, please don't save this.booleanisTransientChild(String classname) Is child transient, please don't save this.voidremoveTransientAttribute(String attribute) Removes an attribute name from the list of transient attributes.voidremoveTransientChild(String classname) Removes a child class name from the list of transient children.voidsetAttributes(boolean attributes) Sets whether the attributes of this component should be stored.voidsetBackup(boolean backup) Sets whether a backup of the configuration should be created.voidsetChildren(boolean children) Sets whether child components should be stored.voidsetDefault(boolean aDefault) Sets whether this description represents a default component.voidsetExternalAllowed(boolean external) Sets whether external (separate file) storage is allowed for this description.voidsetExternalOnly(boolean external) Sets whether this description is restricted to external storage only.voidSets the unique identifier for this description.voidsetStandard(boolean standard) Sets whether this description represents a standard component.voidsetStoreFactory(IStoreFactory storeFactory) Sets the StoreFactory instance used to create objects for this description.voidsetStoreFactoryClass(String storeFactoryClass) Sets the fully qualified class name of the StoreFactory implementation.voidsetStoreSeparate(boolean storeSeparate) Sets whether this component should be stored in a separate file.voidsetStoreWriterClass(String storeWriterClass) Sets the fully qualified class name of the StoreWriter implementation.voidSets the XML tag name for this description.voidsetTagClass(String tagClass) Sets the fully qualified class name associated with this description's tag.voidsetTransientAttributes(List<String> transientAttributes) Sets the list of attribute names that should not be persisted.voidsetTransientChildren(List<String> transientChildren) Sets the list of child class names that should not be persisted.
-
Constructor Details
-
StoreDescription
public StoreDescription()Constructs a new StoreDescription with default settings.
-
-
Method Details
-
isExternalAllowed
public boolean isExternalAllowed()Indicates whether external (separate file) storage is allowed for this description.- Returns:
- true if external storage is allowed
-
setExternalAllowed
public void setExternalAllowed(boolean external) Sets whether external (separate file) storage is allowed for this description.- Parameters:
external- true if external storage is allowed
-
isExternalOnly
public boolean isExternalOnly()Indicates whether this description is restricted to external storage only.- Returns:
- true if external storage is the only allowed option
-
setExternalOnly
public void setExternalOnly(boolean external) Sets whether this description is restricted to external storage only.- Parameters:
external- true if external storage is the only allowed option
-
isStandard
public boolean isStandard()Indicates whether this description represents a standard component.- Returns:
- true if this is a standard component
-
setStandard
public void setStandard(boolean standard) Sets whether this description represents a standard component.- Parameters:
standard- true if this is a standard component
-
isBackup
public boolean isBackup()Indicates whether a backup of the configuration should be created.- Returns:
- true if backup is enabled
-
setBackup
public void setBackup(boolean backup) Sets whether a backup of the configuration should be created.- Parameters:
backup- true if backup is enabled
-
isDefault
public boolean isDefault()Indicates whether this description represents a default component.- Returns:
- true if this is a default component
-
setDefault
public void setDefault(boolean aDefault) Sets whether this description represents a default component.- Parameters:
aDefault- true if this is a default component
-
getStoreFactoryClass
Returns the fully qualified class name of the StoreFactory implementation.- Returns:
- the StoreFactory class name
-
setStoreFactoryClass
Sets the fully qualified class name of the StoreFactory implementation.- Parameters:
storeFactoryClass- the StoreFactory class name
-
getStoreFactory
Returns the StoreFactory instance used to create objects for this description.- Returns:
- the StoreFactory instance
-
setStoreFactory
Sets the StoreFactory instance used to create objects for this description.- Parameters:
storeFactory- the StoreFactory instance
-
getStoreWriterClass
Returns the fully qualified class name of the StoreWriter implementation.- Returns:
- the StoreWriter class name
-
setStoreWriterClass
Sets the fully qualified class name of the StoreWriter implementation.- Parameters:
storeWriterClass- the StoreWriter class name
-
getTag
-
setTag
Sets the XML tag name for this description.- Parameters:
tag- the XML tag name
-
getTagClass
Returns the fully qualified class name associated with this description's tag.- Returns:
- the tag class name
-
setTagClass
Sets the fully qualified class name associated with this description's tag.- Parameters:
tagClass- the tag class name
-
getTransientAttributes
-
setTransientAttributes
-
addTransientAttribute
Adds an attribute name to the list of transient attributes that should not be persisted.- Parameters:
attribute- the attribute name to add
-
removeTransientAttribute
Removes an attribute name from the list of transient attributes.- Parameters:
attribute- the attribute name to remove
-
getTransientChildren
-
setTransientChildren
-
addTransientChild
Adds a child class name to the list of transient children that should not be persisted.- Parameters:
classname- the child class name to add
-
removeTransientChild
Removes a child class name from the list of transient children.- Parameters:
classname- the child class name to remove
-
isTransientChild
Is child transient, please don't save this.- Parameters:
classname- The class name to check- Returns:
- true if the classname is a transient child
-
isTransientAttribute
Is attribute transient, please don't save this.- Parameters:
attribute- The attribute name to check- Returns:
- true if the attribute is transient
-
getId
-
setId
Sets the unique identifier for this description.- Parameters:
id- the unique identifier
-
isAttributes
public boolean isAttributes()Indicates whether the attributes of this component should be stored.- Returns:
- true if attributes should be stored
-
setAttributes
public void setAttributes(boolean attributes) Sets whether the attributes of this component should be stored.- Parameters:
attributes- true if attributes should be stored
-
isStoreSeparate
public boolean isStoreSeparate()Indicates whether this component should be stored in a separate file.- Returns:
- true if it's a separate store
-
setStoreSeparate
public void setStoreSeparate(boolean storeSeparate) Sets whether this component should be stored in a separate file.- Parameters:
storeSeparate- true if it should be stored separately
-
isChildren
public boolean isChildren()Indicates whether child components should be stored.- Returns:
- true if children should be stored
-
setChildren
public void setChildren(boolean children) Sets whether child components should be stored.- Parameters:
children- true if children should be stored
-