com.filenet.wcm.toolkit.server.util
Class WcmSystem

java.lang.Object
  extended bycom.filenet.wcm.toolkit.server.util.WcmSystem

public class WcmSystem
extends java.lang.Object

WcmSystem provides access to pertinent information about the system. An instance of WcmSystem can be gotten via a factory method on WcmController. The implementation of this factory method is done in a WcmController implementation subclass. The behavior of WcmSystem can therefore be customized for various controller implementations.


Constructor Summary
WcmSystem(javax.servlet.ServletContext application, javax.servlet.http.HttpServletRequest request, java.lang.String jspListenPort)
          This is the constructor for WcmSystem.
 
Method Summary
 java.lang.String getLocalIP()
          Returns the local IP for this server as defined in java.net.InetAddr.getHostAddress().
 java.lang.String getLocalPort()
          Returns the local port for this server - as defined in WcmBootstrapPrefs.javaHttpPort.
 java.lang.String getServerType()
          Returns the server type which should be the vendor name and vendor version.
 java.lang.String getServletVersion()
          Returns the Servlet spec version number implemented by this server in the format "major.minor" (i.e.
 boolean isServlet22()
          Returns true if the system's servlet version implementation is Servlet 2.2.
 boolean isServlet23()
          Returns true if the system's servlet version implementation is Servlet 2.3.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WcmSystem

public WcmSystem(javax.servlet.ServletContext application,
                 javax.servlet.http.HttpServletRequest request,
                 java.lang.String jspListenPort)
          throws java.lang.Exception
This is the constructor for WcmSystem. The optional jspListenPort parameter can be specified as in one of the following formats:

Parameters:
application - A reference to the current ServletContext.
request - A reference to the current HttpServletRequest.
jspListenPort - (optional) If not specified, the Java server IP and port are determined based on the request object.
Throws:
java.lang.Exception
Method Detail

getLocalIP

public java.lang.String getLocalIP()
Returns the local IP for this server as defined in java.net.InetAddr.getHostAddress().

Returns:
String

getLocalPort

public java.lang.String getLocalPort()
Returns the local port for this server - as defined in WcmBootstrapPrefs.javaHttpPort. If this value is blank or null, the request.getServerPort is used.

Returns:
String

getServletVersion

public java.lang.String getServletVersion()
Returns the Servlet spec version number implemented by this server in the format "major.minor" (i.e. "2.3")

Returns:
String

isServlet22

public boolean isServlet22()
Returns true if the system's servlet version implementation is Servlet 2.2.

Returns:
true or false

isServlet23

public boolean isServlet23()
Returns true if the system's servlet version implementation is Servlet 2.3.

Returns:
true or false

getServerType

public java.lang.String getServerType()
Returns the server type which should be the vendor name and vendor version.

Returns:
String


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.