tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Query on Tomcat Server.xml
Date Thu, 10 Sep 2009 17:09:11 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bhuvanesh,

On 9/7/2009 12:00 AM, Pattanashetti wrote:
> I wanted to create connector using tomcat Apis.
> 
> Connector conn = new Connector();
> conn.setPort(8070);
> 
> service.addConnector(conn);
> 
> This above code is working fine. I m able to access the appication with this
> connector port (8070).
> 
> *But i wanted to configure the Https port in the same manner. *
> 
> Connector class does not have* setKeyStoreFile* of *setKeyStorePassword*method.
> 
> I tried with connector.setAttribute("keystoreFile", filePath);
> 
> But this is not working. :(
> 
> Is there any specific way to for creating https connector using tomcat APIs?

I'm not going to read the APIs for you, you can read them yourself:
http://tomcat.apache.org/tomcat-6.0-doc/api/index.html

Specifically, I would look at the packages org.apache.catalina.connector
and org.apache.coyote.http11.

It would also help to look at the code Tomcat uses to build its own
connector objects in the org/apache/catalina/startup/Catalina.java and
org/apache/catalina/startup/ConnectorCreateRule.java files.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqpMrYACgkQ9CaO5/Lv0PC/pwCdEqd/onAuTnLKGnFjJQ9xi9yZ
5cMAoIG57tFJiGK//QOKXW6bpxnwBRde
=GuTF
-----END PGP SIGNATURE-----

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


Mime
View raw message