org.atmosphere.util
Class ServletContextFactory

java.lang.Object
  extended by org.atmosphere.util.ServletContextFactory

public class ServletContextFactory
extends Object

A simple Factory to get access to the . This factory won't work if more than one Servlet is deployed inside the same war.

Author:
Jeanfrancois Arcand

Method Summary
static ServletContextFactory getDefault()
           
 javax.servlet.ServletContext getServletContext()
           
 void init(javax.servlet.ServletContext servletContext)
          Set the ServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public void init(javax.servlet.ServletContext servletContext)
Set the ServletContext

Parameters:
servletContext - ServletContext

getServletContext

public javax.servlet.ServletContext getServletContext()

getDefault

public static final ServletContextFactory getDefault()


Copyright © 2014. All Rights Reserved.