public class ConnectorStoreAppender extends StoreAppender
Modifier and Type | Field and Description |
---|---|
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 this Attribute value or not
|
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 only the open tag with all attributes
|
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 attribute name
|
protected void |
storeConnectorAttribtues(java.io.PrintWriter aWriter,
int indent,
java.lang.Object bean,
StoreDescription aDesc)
print Attributes
|
convertStr, defaultInstance, isPersistable, printAttribute, printAttributes, printCloseTag, printIndent, printTagArray, printTagContent, printTagValueArray
protected static java.util.HashMap<java.lang.String,java.lang.String> replacements
public void printAttributes(java.io.PrintWriter writer, int indent, boolean include, java.lang.Object bean, StoreDescription desc) throws java.lang.Exception
printAttributes
in class StoreAppender
writer
- PrintWriter to which we are storinginclude
- Should we include a className
attribute?bean
- Bean whose properties are to be rendered as attributes,desc
- RegistryDescrpitor 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
- java.beans.IntrospectionException
protected void storeConnectorAttribtues(java.io.PrintWriter aWriter, int indent, java.lang.Object bean, StoreDescription aDesc) throws java.lang.Exception
aWriter
- indent
- bean
- aDesc
- java.lang.Exception
public void printOpenTag(java.io.PrintWriter aWriter, int indent, java.lang.Object bean, StoreDescription aDesc) throws java.lang.Exception
StoreAppender
printOpenTag
in class StoreAppender
java.lang.Exception
public void printTag(java.io.PrintWriter aWriter, int indent, java.lang.Object bean, StoreDescription aDesc) throws java.lang.Exception
printTag
in class StoreAppender
java.lang.Exception
StoreAppender.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
- name
- value
- StoreAppender.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)
StoreAppender
isPrintValue
in class StoreAppender
bean
- orginal beanbean2
- default beanattrName
- attribute namedesc
- StoreDescription from beanprotected java.io.File getCatalinaBase()
protected java.io.File getJkHomeBase(java.lang.String jkHome, java.io.File appBase)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.