| |
|
| java.lang.Object org.apache.turbine.util.ServerData
ServerData | public class ServerData (Code) | | Holds basic server information under which Turbine is running.
This class is accessable via the RunData object within the Turbine
system. You can also use it as a placeholder for this information
if you are only emulating a servlet system.
author: Kevin A. Burton author: Jon S. Stevens author: Henning P. Schmiedehausen version: $Id: ServerData.java 534527 2007-05-02 16:10:59Z tv $ |
ServerData | public ServerData(String serverName, int serverPort, String serverScheme, String scriptName, String contextPath)(Code) | | Constructor.
Parameters: serverName - The server name. Parameters: serverPort - The server port. Parameters: serverScheme - The server scheme. Parameters: scriptName - The script name. Parameters: contextPath - The context Path |
ServerData | public ServerData(ServerData serverData)(Code) | | Copy-Constructor
Parameters: serverData - A ServerData Object |
ServerData | public ServerData(HttpServletRequest req)(Code) | | A C'tor that takes a HTTP Request object and
builds the server data from its contents
Parameters: req - The HTTP Request |
clone | public Object clone()(Code) | | generates a new Object with the same values as this one.
A cloned object. |
getContextPath | public String getContextPath()(Code) | | Get the context path.
the context path. |
getHostUrl | public void getHostUrl(StringBuffer url)(Code) | | Appends the Host URL to the supplied StringBuffer.
Parameters: url - A StringBuffer object |
getScriptName | public String getScriptName()(Code) | | Get the script name
the script name. |
getServerName | public String getServerName()(Code) | | Get the name of the server.
A String. |
getServerPort | public int getServerPort()(Code) | | Get the server port.
the server port. |
getServerScheme | public String getServerScheme()(Code) | | Get the server scheme.
the server scheme. |
setContextPath | public void setContextPath(String contextPath)(Code) | | Set the context path.
Parameters: contextPath - A String. |
setScriptName | public void setScriptName(String scriptName)(Code) | | Set the script name.
Parameters: scriptName - the script name. |
setServerName | public void setServerName(String serverName)(Code) | | Sets the cached serverName.
Parameters: serverName - the server name. |
setServerPort | public void setServerPort(int serverPort)(Code) | | Sets the cached serverPort.
Parameters: serverPort - the server port. |
setServerScheme | public void setServerScheme(String serverScheme)(Code) | | Sets the cached serverScheme.
Parameters: serverScheme - the server scheme. |
toString | public String toString()(Code) | | Returns this object as an URL.
The contents of this object as a String |
|
|
|