public class ConnectorStoreAppender extends StoreAppender
Modifier and Type | Field and Description |
---|---|
protected static java.util.Set<java.lang.String> |
internalExecutorAttributes |
protected static java.util.HashMap<java.lang.String,java.lang.String> |
replacements |
Constructor and Description |
---|
ConnectorStoreAppender() |
Modifier and Type | Method and Description |
---|---|
protected java.io.File |
getCatalinaBase() |
protected java.io.File |
getJkHomeBase(java.lang.String jkHome,
java.io.File appBase) |
protected java.util.List<java.lang.String> |
getPropertyKeys(Connector bean)
Get all properties from Connector and current ProtocolHandler.
|
boolean |
isPrintValue(java.lang.Object bean,
java.lang.Object bean2,
java.lang.String attrName,
StoreDescription desc)
Print Connector Values.
|
void |
printAttributes(java.io.PrintWriter writer,
int indent,
boolean include,
java.lang.Object bean,
StoreDescription desc)
Store the relevant attributes of the specified JavaBean.
|
void |
printOpenTag(java.io.PrintWriter aWriter,
int indent,
java.lang.Object bean,
StoreDescription aDesc)
Print the open tag for connector attributes (override).
|
void |
printTag(java.io.PrintWriter aWriter,
int indent,
java.lang.Object bean,
StoreDescription aDesc)
Print a tag for connector attributes (override).
|
void |
printValue(java.io.PrintWriter writer,
int indent,
java.lang.String name,
java.lang.Object value)
Print a value but replace certain attribute names.
|
protected void |
storeConnectorAttributes(java.io.PrintWriter aWriter,
int indent,
java.lang.Object bean,
StoreDescription aDesc)
Print Attributes for the connector
|
defaultInstance, isPersistable, printAttribute, printAttributes, printCloseTag, printIndent, printTagArray, printTagContent, printTagValueArray
protected static final java.util.HashMap<java.lang.String,java.lang.String> replacements
protected static final java.util.Set<java.lang.String> internalExecutorAttributes
public void printAttributes(java.io.PrintWriter writer, int indent, boolean include, java.lang.Object bean, StoreDescription desc) throws java.lang.Exception
StoreAppender
printAttributes
in class StoreAppender
writer
- 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 beanjava.lang.Exception
- if an exception occurs while storingprotected java.util.List<java.lang.String> getPropertyKeys(Connector bean) throws java.beans.IntrospectionException
bean
- The connectorjava.beans.IntrospectionException
- Error introspecting connectorprotected void storeConnectorAttributes(java.io.PrintWriter aWriter, int indent, java.lang.Object bean, StoreDescription aDesc) throws java.lang.Exception
aWriter
- Current writerindent
- Indentation levelbean
- The connector beanaDesc
- The connector descriptionjava.lang.Exception
- Store error occurredpublic void printOpenTag(java.io.PrintWriter aWriter, int indent, java.lang.Object bean, StoreDescription aDesc) throws java.lang.Exception
printOpenTag
in class StoreAppender
aWriter
- The output writerindent
- Indentation levelbean
- The current bean that is storedaDesc
- Store description of the current elementjava.lang.Exception
- A store error occurredStoreAppender.printOpenTag(java.io.PrintWriter,
int, java.lang.Object,
org.apache.catalina.storeconfig.StoreDescription)
public void printTag(java.io.PrintWriter aWriter, int indent, java.lang.Object bean, StoreDescription aDesc) throws java.lang.Exception
printTag
in class StoreAppender
aWriter
- The output writerindent
- Indentation levelbean
- The current bean that is storedaDesc
- Store description of the current elementjava.lang.Exception
- A store error occurredStoreAppender.printTag(java.io.PrintWriter,
int, java.lang.Object,
org.apache.catalina.storeconfig.StoreDescription)
public void printValue(java.io.PrintWriter writer, int indent, java.lang.String name, java.lang.Object value)
printValue
in class StoreAppender
writer
- 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(java.lang.Object bean, java.lang.Object bean2, java.lang.String attrName, StoreDescription desc)
isPrintValue
in class StoreAppender
bean
- orginal 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 java.io.File getCatalinaBase()
protected java.io.File getJkHomeBase(java.lang.String jkHome, java.io.File appBase)
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.