You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Anton Ushakov <an...@stanford.edu> on 2004/02/24 01:44:24 UTC
ServerSocketFactories for Connectors
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.
Question: how can we override the ServerSocketFactory for the
CoyoteConnector?
thank you
-anton
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: ServerSocketFactories for Connectors
Posted by Bill Barker <wb...@wilshire.com>.
"Anton Ushakov" <an...@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