Package org.apache.catalina.storeconfig
Class StoreDescription
- java.lang.Object
-
- org.apache.catalina.storeconfig.StoreDescription
-
public class StoreDescription extends java.lang.ObjectBean 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 Constructor Description StoreDescription()Constructs a new StoreDescription with default settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTransientAttribute(java.lang.String attribute)Adds an attribute name to the list of transient attributes that should not be persisted.voidaddTransientChild(java.lang.String classname)Adds a child class name to the list of transient children that should not be persisted.java.lang.StringgetId()Return the real id or TagClassIStoreFactorygetStoreFactory()Returns the StoreFactory instance used to create objects for this description.java.lang.StringgetStoreFactoryClass()Returns the fully qualified class name of the StoreFactory implementation.java.lang.StringgetStoreWriterClass()Returns the fully qualified class name of the StoreWriter implementation.java.lang.StringgetTag()Returns the XML tag name for this description.java.lang.StringgetTagClass()Returns the fully qualified class name associated with this description's tag.java.util.List<java.lang.String>getTransientAttributes()Returns the list of attribute names that should not be persisted.java.util.List<java.lang.String>getTransientChildren()Returns the list of child class names that should not be persisted.booleanisAttributes()Indicates whether the attributes of this component should be stored.booleanisBackup()Indicates whether a backup of the configuration should be created.booleanisChildren()Indicates whether child components should be stored.booleanisDefault()Indicates whether this description represents a default component.booleanisExternalAllowed()Indicates whether external (separate file) storage is allowed for this description.booleanisExternalOnly()Indicates whether this description is restricted to external storage only.booleanisStandard()Indicates whether this description represents a standard component.booleanisStoreSeparate()Indicates whether this component should be stored in a separate file.booleanisTransientAttribute(java.lang.String attribute)Is attribute transient, please don't save this.booleanisTransientChild(java.lang.String classname)Is child transient, please don't save this.voidremoveTransientAttribute(java.lang.String attribute)Removes an attribute name from the list of transient attributes.voidremoveTransientChild(java.lang.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.voidsetId(java.lang.String id)Sets 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(java.lang.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(java.lang.String storeWriterClass)Sets the fully qualified class name of the StoreWriter implementation.voidsetTag(java.lang.String tag)Sets the XML tag name for this description.voidsetTagClass(java.lang.String tagClass)Sets the fully qualified class name associated with this description's tag.voidsetTransientAttributes(java.util.List<java.lang.String> transientAttributes)Sets the list of attribute names that should not be persisted.voidsetTransientChildren(java.util.List<java.lang.String> transientChildren)Sets the list of child class names that should not be persisted.
-
-
-
Method Detail
-
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
public java.lang.String getStoreFactoryClass()
Returns the fully qualified class name of the StoreFactory implementation.- Returns:
- the StoreFactory class name
-
setStoreFactoryClass
public void setStoreFactoryClass(java.lang.String storeFactoryClass)
Sets the fully qualified class name of the StoreFactory implementation.- Parameters:
storeFactoryClass- the StoreFactory class name
-
getStoreFactory
public IStoreFactory getStoreFactory()
Returns the StoreFactory instance used to create objects for this description.- Returns:
- the StoreFactory instance
-
setStoreFactory
public void setStoreFactory(IStoreFactory storeFactory)
Sets the StoreFactory instance used to create objects for this description.- Parameters:
storeFactory- the StoreFactory instance
-
getStoreWriterClass
public java.lang.String getStoreWriterClass()
Returns the fully qualified class name of the StoreWriter implementation.- Returns:
- the StoreWriter class name
-
setStoreWriterClass
public void setStoreWriterClass(java.lang.String storeWriterClass)
Sets the fully qualified class name of the StoreWriter implementation.- Parameters:
storeWriterClass- the StoreWriter class name
-
getTag
public java.lang.String getTag()
Returns the XML tag name for this description.- Returns:
- the XML tag name
-
setTag
public void setTag(java.lang.String tag)
Sets the XML tag name for this description.- Parameters:
tag- the XML tag name
-
getTagClass
public java.lang.String getTagClass()
Returns the fully qualified class name associated with this description's tag.- Returns:
- the tag class name
-
setTagClass
public void setTagClass(java.lang.String tagClass)
Sets the fully qualified class name associated with this description's tag.- Parameters:
tagClass- the tag class name
-
getTransientAttributes
public java.util.List<java.lang.String> getTransientAttributes()
Returns the list of attribute names that should not be persisted.- Returns:
- the list of transient attribute names
-
setTransientAttributes
public void setTransientAttributes(java.util.List<java.lang.String> transientAttributes)
Sets the list of attribute names that should not be persisted.- Parameters:
transientAttributes- the list of transient attribute names
-
addTransientAttribute
public void addTransientAttribute(java.lang.String attribute)
Adds an attribute name to the list of transient attributes that should not be persisted.- Parameters:
attribute- the attribute name to add
-
removeTransientAttribute
public void removeTransientAttribute(java.lang.String attribute)
Removes an attribute name from the list of transient attributes.- Parameters:
attribute- the attribute name to remove
-
getTransientChildren
public java.util.List<java.lang.String> getTransientChildren()
Returns the list of child class names that should not be persisted.- Returns:
- the list of transient child class names
-
setTransientChildren
public void setTransientChildren(java.util.List<java.lang.String> transientChildren)
Sets the list of child class names that should not be persisted.- Parameters:
transientChildren- the list of transient child class names
-
addTransientChild
public void addTransientChild(java.lang.String classname)
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
public void removeTransientChild(java.lang.String classname)
Removes a child class name from the list of transient children.- Parameters:
classname- the child class name to remove
-
isTransientChild
public boolean isTransientChild(java.lang.String classname)
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
public boolean isTransientAttribute(java.lang.String attribute)
Is attribute transient, please don't save this.- Parameters:
attribute- The attribute name to check- Returns:
- true if the attribute is transient
-
getId
public java.lang.String getId()
Return the real id or TagClass- Returns:
- Returns the id.
-
setId
public void setId(java.lang.String id)
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
-
-