|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet com.stellent.cis.web.servlets.SCSInitializeServlet
public class SCSInitializeServlet
Servlet that initializes the SCS CIS framework. Places the initialized CISApplication
class as an attribute
in the ServletContext
under the name "CISApplication." This servlet should be set to
be a LOAD_ON_STARTUP
servlet.
The CISApplication
instance can be accessed from any other servlet by calling ServletContext.getAttribute(String)
with a value "CISApplication." The CISApplication instance can also be accessed via "application" scope from any JSP
page or via JSTL with the expression ${CISApplication}.
Available parameters (the following parameters are legacy parameters; the servlet now uses theCISApplication#initialize(java.util.Properties)
method so all properties described inCISApplication
should be used; the updated parameter names are listed next to the deprecated parameters): isClient (deprecated, use {@link CISApplication#PROPERTY_CONFIG_TYPE)) - if true initialize as client (default false) clientUrl (deprecated, use {@link CISApplication#PROPERTY_CONFIG_CLIENT_URL)) - URL to the CIS server, empty string to attempt JNDI/RMI initialization adapterConfig (deprecated, use {@link CISApplication#PROPERTY_CONFIG_SERVER_ADAPTER_CONFIG)) - the adapter configuration location (can be relative to web or full file url; if not specified, looks in /WEB-INF/adapterconfig.xml and then looks in classpath for /adapterconfig.xml) temporaryDirectory (deprecated, use {@link CISApplication#PROPERTY_CONFIG_SERVER_TEMP_DIRECTORY)) - the temporary file directory to use (null for default) serverType (deprecated, use {@link CISApplication#PROPERTY_CONFIG_SERVER_TYPE)) - the server type to initialize as, null to let servlet attempt to discover type (weblogic, websphere, tomcat, sunone, standalone) asynchronously - only applies to client initializations, will attempt to asynchronously make the connection in a seperate thread. This is useful when connecting to the CIS EAR file which might get initialized after this servlet retryCount - the number of ties to retry the connection; defaults to 120; there is a 1 second sleep interval before each try so the retryCount is effectively the number of seconds to continue to attempt to connect to the CIS server
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
m_log
|
static java.lang.String |
PARAM_CIS_PROPERTIES_FILE
|
Constructor Summary | |
---|---|
SCSInitializeServlet()
|
Method Summary | |
---|---|
protected void |
addLegacyParameters(java.util.Properties initializationProperties,
javax.servlet.ServletConfig servletConfig)
Add legacy parameters to the initialization properties |
protected java.net.URL |
getAdapterConfig(java.lang.String adapterConfig)
Resolve the adapter configuration URL from the given adapter config string |
protected void |
getCisPropertiesFromConfig(javax.servlet.ServletConfig servletConfig,
java.util.Properties propertiesMap)
Load the standard CIS properties specified in the servlet configuration. |
protected void |
getJNDIPropertiesFromConfig(javax.servlet.ServletConfig servletConfig,
java.util.Map propertiesMap,
java.lang.String prefix)
Load the JNDI properties specified in the servlet configuration. |
void |
init(javax.servlet.ServletConfig servletConfig)
|
protected void |
initializeClientAsynchronously(java.util.Properties initializationProperties,
int retryCount)
|
protected void |
registerCISApplication(ICISApplication cisApplication)
Register the CISApplication instance in the servlet config |
protected java.net.URL |
resolveUrl(java.lang.String url)
Resolve the given string into an URL object |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PARAM_CIS_PROPERTIES_FILE
protected org.apache.commons.logging.Log m_log
Constructor Detail |
---|
public SCSInitializeServlet()
Method Detail |
---|
public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void addLegacyParameters(java.util.Properties initializationProperties, javax.servlet.ServletConfig servletConfig) throws java.io.IOException
initializationProperties
- servletConfig
-
java.io.IOException
protected void initializeClientAsynchronously(java.util.Properties initializationProperties, int retryCount)
initializationProperties
- retryCount
- protected void registerCISApplication(ICISApplication cisApplication)
cisApplication
- protected void getJNDIPropertiesFromConfig(javax.servlet.ServletConfig servletConfig, java.util.Map propertiesMap, java.lang.String prefix)
servletConfig
- the current servlet configprotected void getCisPropertiesFromConfig(javax.servlet.ServletConfig servletConfig, java.util.Properties propertiesMap) throws java.io.IOException
servletConfig
- the current servlet config
java.io.IOException
protected java.net.URL getAdapterConfig(java.lang.String adapterConfig) throws java.io.IOException
adapterConfig
- the adapter config string specified as a servlet parameter
java.io.IOException
protected java.net.URL resolveUrl(java.lang.String url) throws java.io.IOException
url
- the string url
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |