public class ConnectorStoreAppender extends StoreAppender
| Modifier and Type | Field and Description |
|---|---|
protected static HashMap<String,String> |
replacements |
| Constructor and Description |
|---|
ConnectorStoreAppender() |
| Modifier and Type | Method and Description |
|---|---|
protected File |
getCatalinaBase() |
protected File |
getJkHomeBase(String jkHome,
File appBase) |
protected List<String> |
getPropertyKeys(Connector bean)
Get all properties from Connector and current ProtocolHandler.
|
boolean |
isPrintValue(Object bean,
Object bean2,
String attrName,
StoreDescription desc)
Print Connector Values.
|
void |
printAttributes(PrintWriter writer,
int indent,
boolean include,
Object bean,
StoreDescription desc)
Store the relevant attributes of the specified JavaBean.
|
void |
printOpenTag(PrintWriter aWriter,
int indent,
Object bean,
StoreDescription aDesc)
Print the open tag for connector attributes (override).
|
void |
printTag(PrintWriter aWriter,
int indent,
Object bean,
StoreDescription aDesc)
Print a tag for connector attributes (override).
|
void |
printValue(PrintWriter writer,
int indent,
String name,
Object value)
Print a value but replace certain attribute names.
|
protected void |
storeConnectorAttributes(PrintWriter aWriter,
int indent,
Object bean,
StoreDescription aDesc)
Print Attributes for the connector
|
checkAttribute, convertStr, defaultInstance, isPersistable, printAttribute, printAttributes, printCloseTag, printIndent, printTagArray, printTagContent, printTagValueArraypublic void printAttributes(PrintWriter writer, int indent, boolean include, Object bean, StoreDescription desc) throws Exception
StoreAppenderprintAttributes in class StoreAppenderwriter - PrintWriter to which we are storingindent - Indentation levelinclude - Should we include a className attribute?bean - Bean whose properties are to be rendered as attributes,desc - RegistryDescriptor from this beanException - if an exception occurs while storingprotected List<String> getPropertyKeys(Connector bean) throws IntrospectionException
bean - The connectorIntrospectionException - Error intropecting connectorprotected void storeConnectorAttributes(PrintWriter aWriter, int indent, Object bean, StoreDescription aDesc) throws Exception
aWriter - Current writerindent - Indentation levelbean - The connector beanaDesc - The connector descriptionException - Store error occurredpublic void printOpenTag(PrintWriter aWriter, int indent, Object bean, StoreDescription aDesc) throws Exception
printOpenTag in class StoreAppenderaWriter - The output writerindent - Indentation levelbean - The current bean that is storedaDesc - Store description of the current elementException - A store error occurredStoreAppender.printOpenTag(java.io.PrintWriter,
int, java.lang.Object,
org.apache.catalina.storeconfig.StoreDescription)public void printTag(PrintWriter aWriter, int indent, Object bean, StoreDescription aDesc) throws Exception
printTag in class StoreAppenderaWriter - The output writerindent - Indentation levelbean - The current bean that is storedaDesc - Store description of the current elementException - A store error occurredStoreAppender.printTag(java.io.PrintWriter,
int, java.lang.Object,
org.apache.catalina.storeconfig.StoreDescription)public void printValue(PrintWriter writer, int indent, String name, Object value)
printValue in class StoreAppenderwriter - PrintWriter to which we are storingindent - Indentation levelname - Attribute namevalue - Attribute valueStoreAppender.printValue(java.io.PrintWriter,
int, java.lang.String, java.lang.Object)public boolean isPrintValue(Object bean, Object bean2, String attrName, StoreDescription desc)
isPrintValue in class StoreAppenderbean - original beanbean2 - default beanattrName - attribute namedesc - StoreDescription from beantrue if the value should be storedStoreAppender.isPrintValue(java.lang.Object,
java.lang.Object, java.lang.String,
org.apache.catalina.storeconfig.StoreDescription)protected File getCatalinaBase()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.