FileDocCategorySizeDatePackage
ConnectorCreateRule.javaAPI DocApache Tomcat 6.0.142473Fri Jul 20 04:20:36 BST 2007org.apache.catalina.startup

ConnectorCreateRule

public class ConnectorCreateRule extends org.apache.tomcat.util.digester.Rule
Rule implementation that creates a connector.

Fields Summary
Constructors Summary
Methods Summary
public void_setExecutor(org.apache.catalina.connector.Connector con, org.apache.catalina.Executor ex)

        Method m = IntrospectionUtils.findMethod(con.getProtocolHandler().getClass(),"setExecutor",new Class[] {java.util.concurrent.Executor.class});
        m.invoke(con.getProtocolHandler(),new Object[] {ex});
    
public voidbegin(org.xml.sax.Attributes attributes)
Process the beginning of this element.

param
attributes The attribute list of this element

        Service svc = (Service)digester.peek();
        Executor ex = null;
        if ( attributes.getValue("executor")!=null ) {
            ex = svc.getExecutor(attributes.getValue("executor"));
        }
        Connector con = new Connector(attributes.getValue("protocol"));
        if ( ex != null )  _setExecutor(con,ex);
        
        digester.push(con);
    
public voidend()
Process the end of this element.

        Object top = digester.pop();