- Embedded Tomcat 5.0
2. In CoyoteConnector, it has a public method called initilize(), in this method, ProtocolHandler is instantiated
3. In org.apache.catalina.startup.Embedded class's start() method, it will iterate through all connectors and call their initialize() method,
In Embedded.createConnector(), it creates Connector object, and assign a ServerSocketFactory object to the connector,
//connector created and ServerSocketFactory assigned ( it will be CoyoteServerSocketFactory )
connector = embedded.createConnector((InetAddress)null, port, SSL);
if( SSL ){
if( connector instanceof CoyoteConnector ){
CoyoteConnector cc = (CoyoteConnector)connector;
CoyoteServerSocketFactory cssFactory =(CoyoteServerSocketFactory) cc.getFactory();
cssFactory.setCiphers( DEFAULT_CIPHERS ) ;
}
}
embedded.addConnector(connector);
embedded.start();
5. Because CoyoteConnector has a method called setCiphers(), this method works in Tomcat5.5, but for Tomcat5.0, use CoyoteServerSocketFactory.setCiphers() method
No comments:
Post a Comment