com.filenet.wcm.toolkit.server.util
Class WcmSystem
- java.lang.Object
com.filenet.wcm.toolkit.server.util.WcmSystem
- public class WcmSystem
- extends java.lang.Object
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 |
|---|---|
|
getLocalIP()
Returns the local IP for this server as defined in
java.net.InetAddr.getHostAddress().
|
|
getLocalPort()
Returns the local port for this server - as defined in
WcmBootstrapPrefs.javaHttpPort.
|
|
getServerType()
Returns the server type which should be the vendor name and
vendor version.
|
|
getServletVersion()
Returns the Servlet spec version number implemented by
this server in the format "major.minor" (i.e.
|
|
isServlet22()
Returns true if the system's servlet version implementation
is Servlet 2.2.
|
|
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:
- 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.ExceptionMethod 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