com.filenet.wcm.toolkit.server.util

Class WcmSystem

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

  1. public class WcmSystem
  2. 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

Constructor and Description
WcmSystem(javax.servlet.ServletContext application,javax.servlet.http.HttpServletRequest request,java.lang.String jspListenPort)
This is the constructor for WcmSystem.

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getLocalIP()
Returns the local IP for this server as defined in java.net.InetAddr.getHostAddress().
  1. java.lang.String
getLocalPort()
Returns the local port for this server - as defined in WcmBootstrapPrefs.javaHttpPort.
  1. java.lang.String
getServerType()
Returns the server type which should be the vendor name and vendor version.
  1. java.lang.String
getServletVersion()
Returns the Servlet spec version number implemented by this server in the format "major.minor" (i.e.
  1. boolean
isServlet22()
Returns true if the system's servlet version implementation is Servlet 2.2.
  1. 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

  1. public WcmSystem(javax.servlet.ServletContext application,
  2. javax.servlet.http.HttpServletRequest request,
  3. java.lang.String jspListenPort)
  4. throws java.lang.Exception
This is the constructor for WcmSystem. The optional jspListenPort parameter can be specified as in one of the following formats:
  • port - Specifies the port where the Java application server is listening
  • hostname:port - Additionally, the hostname represents of the IP where the Java application server is listening
  • ipAddress:port - Additionally, the ipAddress represents the IP where the Java application server is listening
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

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

getLocalPort

  1. 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

  1. 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

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

isServlet23

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

getServerType

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