-----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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to