Class WebSite.WinCGI.Server
All Packages Class Hierarchy This Package Previous Next Index
Class WebSite.WinCGI.Server
java.lang.Object
|
+----WebSite.WinCGI.Server
- public final class Server
- extends Object
The Server class implements access to WebSite server-related data items.
It is a purely static class, and cannot be instantiated.
Author: Robert B. Denny
Version: 0.2 (experimental)
- See Also:
- Client, Request, Form, Response
-
getAdminEmail()
- Gets the email address of the WebSite server administrator.
-
getDebugFlag()
- Gets the state of WebSite's "back-end debug tracing" option.
-
getGMTOffset()
- Gets the GMT offset in seconds, negative is West of GMT.
-
getName()
- Gets the internet (DNS) name of the server.
-
getPort()
- Gets the IP port number of the server.
-
getProduct()
- Gets the Website server product identification and version.
-
getVersion()
- Gets the version of the CGI interface.
getProduct
public static String getProduct()
- Gets the Website server product identification and version.
getVersion
public static String getVersion()
- Gets the version of the CGI interface.
getName
public static String getName()
- Gets the internet (DNS) name of the server. This may be used to manufacture
URLs that reference the server. NOTE: If WebSite is running in
"multi-homed" mode, this string will contain the DNS name of the
identity on which the current HTTP/CGI request was received.
getPort
public static int getPort()
- Gets the IP port number of the server. This may be used to manufacture
URLs that reference the server. NOTE: This port number will
differ depending on whether the HTTP request was received via an
SSL connection or not.
getAdminEmail
public static String getAdminEmail()
- Gets the email address of the WebSite server administrator. This may be
used to build "mailto:" URLs, for example.
getDebugFlag
public static boolean getDebugFlag()
- Gets the state of WebSite's "back-end debug tracing" option. This may be
used to enable diagnostic features of your Java CGI program.
getGMTOffset
public static int getGMTOffset()
- Gets the GMT offset in seconds, negative is West of GMT. For example,
the GMT offset for US Pacific Standard Time (PST, 8hr west) is
-28800.
All Packages Class Hierarchy This Package Previous Next Index