1
votes

From the tomcat 6 documentation it looks like you can set the classname of things like the Context (http://tomcat.apache.org/tomcat-6.0-doc/config/context.html), Engine (http://tomcat.apache.org/tomcat-6.0-doc/config/engine.html), and Host (http://tomcat.apache.org/tomcat-6.0-doc/config/host.html), but not the Connector.

Am I missing something here or is it just not possible?

2

2 Answers

3
votes

The "protocol" attribute on the Connector element is really a class name. It's just that tomcat knows a few special values such as "HTTP/1.1" here to be a bit more friendly.

You could do

<Connector port="8080" protocol="com.example.MyConnector" >
2
votes

Yes, it is possible to implement your own connector (We have 2 custom impl. on your servers), you need to implement the protocol and all the jazz form there
for instance:

public class Http11NioInterceptor extends Http11NioProtocol {`
  public Http11NioInterceptor(){    
    super();
    ep = new NioEndpointX();
//....
  }
////
}

hope this helps