Skip navigation links

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

E17273-01


oracle.stellent.wcm.javaee.shared
Class ServletApplicationFactory

java.lang.Object
  extended by oracle.stellent.wcm.javaee.shared.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_DEFAULT
           
static java.lang.String APPLICATION_CLASS_PARAM
           

 

Constructor Summary
ServletApplicationFactory()
           

 

Method Summary
static ClientApplication createInstance(javax.servlet.ServletContext servletContext)
          Create the application instance
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.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

APPLICATION_CLASS_DEFAULT

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

Constructor Detail

ServletApplicationFactory

public ServletApplicationFactory()

Method Detail

createInstance

public static ClientApplication createInstance(javax.servlet.ServletContext servletContext)
                                        throws javax.servlet.ServletException
Create the application instance
Parameters:
servletContext - the servlet context
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.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

Skip navigation links

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

E17273-01


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