|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.server.util.WcmSystem
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 |
public WcmSystem(javax.servlet.ServletContext application, javax.servlet.http.HttpServletRequest request, java.lang.String jspListenPort) throws java.lang.Exception
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.
java.lang.Exception
Method Detail |
public java.lang.String getLocalIP()
public java.lang.String getLocalPort()
public java.lang.String getServletVersion()
public boolean isServlet22()
public boolean isServlet23()
public java.lang.String getServerType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |