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 this Attribute value or not
|
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 only the open tag with all attributes
|
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 attribute name
|
protected void |
storeConnectorAttribtues(PrintWriter aWriter,
int indent,
Object bean,
StoreDescription aDesc)
print Attributes
|
convertStr, defaultInstance, isPersistable, printAttribute, printAttributes, printCloseTag, printIndent, printTagArray, printTagContent, printTagValueArray
public void printAttributes(PrintWriter writer, int indent, boolean include, Object bean, StoreDescription desc) throws 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 beanException
- if an exception occurs while storingprotected List<String> getPropertyKeys(Connector bean) throws IntrospectionException
bean
- IntrospectionException
protected void storeConnectorAttribtues(PrintWriter aWriter, int indent, Object bean, StoreDescription aDesc) throws Exception
aWriter
- indent
- bean
- aDesc
- Exception
public void printOpenTag(PrintWriter aWriter, int indent, Object bean, StoreDescription aDesc) throws Exception
StoreAppender
printOpenTag
in class StoreAppender
Exception
public void printTag(PrintWriter aWriter, int indent, Object bean, StoreDescription aDesc) throws Exception
printTag
in class StoreAppender
Exception
StoreAppender.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 StoreAppender
writer
- name
- value
- StoreAppender.printValue(java.io.PrintWriter,
int, java.lang.String, java.lang.Object)
public boolean isPrintValue(Object bean, Object bean2, String attrName, StoreDescription desc)
StoreAppender
isPrintValue
in class StoreAppender
bean
- orginal beanbean2
- default beanattrName
- attribute namedesc
- StoreDescription from beanprotected File getCatalinaBase()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.