When using DynamicURI in a response the scheme and port are set to whatever
the request values were.  This can be changed using the setServerScheme and
setServerPort methods.  I have recently added a method called setSecure()
that reads a configuration property use.ssl in TurbineResources.  If this
variable is true, it changes the scheme to https and the port to 443.
Otherwise it leaves things alone.  Using setSecure can let you code so that
your program can degrade to using http if the user (installer) does not wish
to use the ssl features.

Its use is something like:
new DynamicURI(data, "DefaultScreen").setSecure()

Of course, if your whole site is to use ssl, your initial call to Turbine
will be using https and it should continue to so until you specifically set
the scheme to http.

John McNally



----- Original Message -----
From: christopher baus <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Tuesday, March 21, 2000 6:40 PM
Subject: mod_ssl


> I want to use turbine with ssl.  It seems that the URIs that are generated
> use http:// instead of https://.  How do I change the generation so that
ssl
> is used?
>
> thanks
>
> ~christopher
>
>
>
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
>



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to