Class ConnectorStoreAppender


  • public class ConnectorStoreAppender
    extends StoreAppender
    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 Detail

      • replacements

        protected static final java.util.HashMap<java.lang.String,​java.lang.String> replacements
      • internalExecutorAttributes

        protected static final java.util.Set<java.lang.String> internalExecutorAttributes
    • Constructor Detail

      • ConnectorStoreAppender

        public ConnectorStoreAppender()
    • Method Detail

      • printAttributes

        public void printAttributes​(java.io.PrintWriter writer,
                                    int indent,
                                    boolean include,
                                    java.lang.Object bean,
                                    StoreDescription desc)
                             throws java.lang.Exception
        Description copied from class: StoreAppender
        Store the relevant attributes of the specified JavaBean.
        Overrides:
        printAttributes in class StoreAppender
        Parameters:
        writer - PrintWriter to which we are storing
        indent - Indentation level
        include - Should we include a className attribute?
        bean - Bean whose properties are to be rendered as attributes,
        desc - RegistryDescriptor from this bean
        Throws:
        java.lang.Exception - if an exception occurs while storing
      • getPropertyKeys

        protected java.util.List<java.lang.String> getPropertyKeys​(Connector bean)
                                                            throws java.beans.IntrospectionException
        Get all properties from Connector and current ProtocolHandler.
        Parameters:
        bean - The connector
        Returns:
        List of Connector property names
        Throws:
        java.beans.IntrospectionException - Error introspecting connector
      • storeConnectorAttributes

        protected void storeConnectorAttributes​(java.io.PrintWriter aWriter,
                                                int indent,
                                                java.lang.Object bean,
                                                StoreDescription aDesc)
                                         throws java.lang.Exception
        Print Attributes for the connector
        Parameters:
        aWriter - Current writer
        indent - Indentation level
        bean - The connector bean
        aDesc - The connector description
        Throws:
        java.lang.Exception - Store error occurred
      • getCatalinaBase

        protected java.io.File getCatalinaBase()
      • getJkHomeBase

        protected java.io.File getJkHomeBase​(java.lang.String jkHome,
                                             java.io.File appBase)