Package org.apache.catalina.storeconfig
Class ConnectorStoreAppender
java.lang.Object
org.apache.catalina.storeconfig.StoreAppender
org.apache.catalina.storeconfig.ConnectorStoreAppender
Store the Connector attributes. Connector has really special design. A
 Connector is only a startup Wrapper for a ProtocolHandler. This meant that
 ProtocolHandler get all there attributes from the Connector attribute map.
 Strange is that some attributes change their name.
- 
Field SummaryFieldsModifier and TypeFieldDescription
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected Fileprotected FilegetJkHomeBase(String jkHome, File appBase) getPropertyKeys(Connector bean) Get all properties from Connector and current ProtocolHandler.booleanisPrintValue(Object bean, Object bean2, String attrName, StoreDescription desc) Print Connector Values.voidprintAttributes(PrintWriter writer, int indent, boolean include, Object bean, StoreDescription desc) Store the relevant attributes of the specified JavaBean.voidprintOpenTag(PrintWriter aWriter, int indent, Object bean, StoreDescription aDesc) Print the open tag for connector attributes (override).voidprintTag(PrintWriter aWriter, int indent, Object bean, StoreDescription aDesc) Print a tag for connector attributes (override).voidprintValue(PrintWriter writer, int indent, String name, Object value) Print a value but replace certain attribute names.protected voidstoreConnectorAttributes(PrintWriter aWriter, int indent, Object bean, StoreDescription aDesc) Print Attributes for the connectorMethods inherited from class org.apache.catalina.storeconfig.StoreAppendercheckAttribute, defaultInstance, isPersistable, printAttribute, printAttributes, printCloseTag, printIndent, printTagArray, printTagContent, printTagValueArray
- 
Field Details- 
replacements
- 
internalExecutorAttributes
 
- 
- 
Constructor Details- 
ConnectorStoreAppenderpublic ConnectorStoreAppender()
 
- 
- 
Method Details- 
printAttributespublic void printAttributes(PrintWriter writer, int indent, boolean include, Object bean, StoreDescription desc) throws Exception Description copied from class:StoreAppenderStore the relevant attributes of the specified JavaBean.- Overrides:
- printAttributesin class- StoreAppender
- Parameters:
- writer- PrintWriter to which we are storing
- indent- Indentation level
- include- Should we include a- classNameattribute?
- bean- Bean whose properties are to be rendered as attributes,
- desc- RegistryDescriptor from this bean
- Throws:
- Exception- if an exception occurs while storing
 
- 
getPropertyKeysGet all properties from Connector and current ProtocolHandler.- Parameters:
- bean- The connector
- Returns:
- List of Connector property names
- Throws:
- IntrospectionException- Error introspecting connector
 
- 
storeConnectorAttributesprotected void storeConnectorAttributes(PrintWriter aWriter, int indent, Object bean, StoreDescription aDesc) throws Exception Print Attributes for the connector- Parameters:
- aWriter- Current writer
- indent- Indentation level
- bean- The connector bean
- aDesc- The connector description
- Throws:
- Exception- Store error occurred
 
- 
printOpenTagpublic void printOpenTag(PrintWriter aWriter, int indent, Object bean, StoreDescription aDesc) throws Exception Print the open tag for connector attributes (override).- Overrides:
- printOpenTagin class- StoreAppender
- Parameters:
- aWriter- The output writer
- indent- Indentation level
- bean- The current bean that is stored
- aDesc- Store description of the current element
- Throws:
- Exception- A store error occurred
- See Also:
 
- 
printTagpublic void printTag(PrintWriter aWriter, int indent, Object bean, StoreDescription aDesc) throws Exception Print a tag for connector attributes (override).- Overrides:
- printTagin class- StoreAppender
- Parameters:
- aWriter- The output writer
- indent- Indentation level
- bean- The current bean that is stored
- aDesc- Store description of the current element
- Throws:
- Exception- A store error occurred
- See Also:
 
- 
printValuePrint a value but replace certain attribute names.- Overrides:
- printValuein class- StoreAppender
- Parameters:
- writer- PrintWriter to which we are storing
- indent- Indentation level
- name- Attribute name
- value- Attribute value
- See Also:
 
- 
isPrintValuePrint Connector Values.- Special handling to default jkHome.
- Don't save catalina.base path at server.xml
 - Overrides:
- isPrintValuein class- StoreAppender
- Parameters:
- bean- original bean
- bean2- default bean
- attrName- attribute name
- desc- StoreDescription from bean
- Returns:
- trueif the value should be stored
- See Also:
 
- 
getCatalinaBase
- 
getJkHomeBase
 
-