Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


oracle.stellent.wcm.javaee
Class ServletApplicationFactory

java.lang.Object
  extended by oracle.stellent.wcm.javaee.ServletApplicationFactory


public class ServletApplicationFactory
extends java.lang.Object

Provide some simple methods for locating the WCM Application


Field Summary
static java.lang.String APPLICATION_CLASS_PARAM
           
static ILog s_log
           

 

Constructor Summary
ServletApplicationFactory()
           

 

Method Summary
static ClientApplication createInstance(javax.servlet.ServletConfig servletConfig)
          Create the application instance
static ClientApplication createInstance(javax.servlet.ServletContext servletContext)
          Deprecated. As of Java Servlet API 2.1, with no direct replacement.
static ClientApplication getApplication(javax.servlet.ServletConfig servletConfig)
          Retrieve the WCM Application stored on the servlet context
static ClientApplication getApplication(javax.servlet.ServletContext servletContext)
          Retrieve the WCM Application stored on the servlet context
static ClientApplication getApplication(javax.servlet.ServletContext servletContext, boolean errorNotFound)
          Retrieve the WCM Application stored on the servlet context
static void setApplication(javax.servlet.ServletConfig servletConfig, ClientApplication application)
          Set the WCM Application on the servlet context
static void setApplication(javax.servlet.ServletContext servletContext, ClientApplication application)
          Set the WCM Application on the servlet context

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

APPLICATION_CLASS_PARAM

public static final java.lang.String APPLICATION_CLASS_PARAM
See Also:
Constant Field Values

s_log

public static ILog s_log

Constructor Detail

ServletApplicationFactory

public ServletApplicationFactory()

Method Detail

createInstance

@Deprecated
public static ClientApplication createInstance(javax.servlet.ServletContext servletContext)
                                        throws javax.servlet.ServletException
Deprecated. As of Java Servlet API 2.1, with no direct replacement.
This constructor is no longer valid, provided for binary compatibility only. The servletContext is held in the servletConfig, not the other way around
Parameters:
servletContext -
Throws:
javax.servlet.ServletException
java.lang.IllegalArgumentException

createInstance

public static ClientApplication createInstance(javax.servlet.ServletConfig servletConfig)
                                        throws javax.servlet.ServletException
Create the application instance
Parameters:
servletConfig - the servlet config
Returns:
the initialized instance
Throws:
javax.servlet.ServletException

getApplication

public static ClientApplication getApplication(javax.servlet.ServletContext servletContext)
                                        throws ApplicationException
Retrieve the WCM Application stored on the servlet context
Parameters:
servletContext - the current context
Returns:
the application instance
Throws:
ApplicationException

getApplication

public static ClientApplication getApplication(javax.servlet.ServletConfig servletConfig)
                                        throws ApplicationException
Retrieve the WCM Application stored on the servlet context
Parameters:
servletConfig - the current config
Returns:
the application instance
Throws:
ApplicationException

getApplication

public static ClientApplication getApplication(javax.servlet.ServletContext servletContext,
                                               boolean errorNotFound)
                                        throws ApplicationException
Retrieve the WCM Application stored on the servlet context
Parameters:
servletContext - the current context
errorNotFound - if true, error out if no wcm application instance is found
Returns:
the application instance
Throws:
ApplicationException

setApplication

public static void setApplication(javax.servlet.ServletContext servletContext,
                                  ClientApplication application)
Set the WCM Application on the servlet context
Parameters:
servletContext - the current context
application - the wcm application instance

setApplication

public static void setApplication(javax.servlet.ServletConfig servletConfig,
                                  ClientApplication application)
Set the WCM Application on the servlet context
Parameters:
servletConfig - the current config
application - the wcm application instance

Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.