This is the base class for all dynamic URIs in the Turbine System.
All of the classes used for generating URIs are derived from this.
author: Jon S. Stevens author: Jason van Zyl author: Henning P. Schmiedehausen author: Quinton McCombs version: $Id: BaseURI.java 534527 2007-05-02 16:10:59Z tv $
setSecure() Method to specify that a URI should use SSL.
public void
setSecure(int port) Method to specify that a URI should use SSL.
Whether or not it does is determined from Turbine.properties.
If use.ssl in the Turbine.properties is set to false, then
http is used in any case.
Encodes a Response Uri according to the Servlet Container.
This might add a Java session identifier or do redirection.
The resulting String can be used in a page or template.
Parameters: uri - The Uri to encode An Uri encoded by the container.
Append the Context Path and Script Name to the passed
String Buffer.
This is a convenience method to be
used in the Link output routines of derived classes to
easily append the correct path.
Parameters: sb - The StringBuffer to store context path and script name.
Appends Scheme, Server and optionally the port to the
supplied String Buffer.
This is a convenience method to be
used in the Link output routines of derived classes to
easily append the correct server scheme.
Parameters: sb - The StringBuffer to store the scheme and port information.
Method to specify that a URI should use SSL.
Whether or not it does is determined from Turbine.properties.
If use.ssl in the Turbine.properties is set to false, then
http is used in any case. (Default of use.ssl is true).
Parameters: port - An int with the port number.
setServerName
public void setServerName(String serverName)(Code)
Sets the server name.
Parameters: serverName - A String with the server name.