tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: ServerSocketFactories for Connectors
Date Tue, 24 Feb 2004 07:06:41 GMT

"Anton Ushakov" <antonu@stanford.edu> wrote in message
news:1077583464.7724.10.camel@hoss.stanford.edu...
> Hi,
>
> For a webservices project we need to override the ServerSocketFactory
> used with a http connector, - we are implementing our own httpg using
> overriden Input/Output streams that do GSS-API authentication.
>
> It works fine when I do this in server.xml on tomcat-4.1.29
>     <Connector
> className="org.apache.catalina.connector.http.HttpConnector"
>                port="6688" scheme="httpg" secure="true">
>     <Factory className="MyOwnServerSocketFactory" />
>     </Connector>
>
> But I know that HttpConnector is deprecated in favor of CoyoteConnector,
> and the same configuration with the CoyoteConnector basically ignores
> the Factory setting, and just keeps using normal http.
>

Yes, the <Factory> element is deprecated for the CoyoteConnector.

> Question: how can we override the ServerSocketFactory for the
> CoyoteConnector?
>

You can set the
socketFactory="fully.qualified.name.of.MyOwnServerSocketFactory" attribute
on the <Connector> element.  The catch is that you need to have:
  public class MyOwnServerSocketFactory extends
org.apache.tomcat.util.net.ServerSocketFactory {
...
}

However, it should still give you enough to do what you want.

> thank you
> -anton




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message