to.etc.iocular.web
Class Iocular
java.lang.Object
to.etc.iocular.web.Iocular
public class Iocular
- extends java.lang.Object
Singleton utility class to access thread-based request and application contexts
without having to pass crud around. This is a public utility class, but using
it in user code binds your code tightly to the Iocular framework which is a no-no.
Consequently, using this from user code is an indication of a design flaw. The only proper
use for this code is from within framework code.
- Author:
- jal
Created on Mar 25, 2007
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getApplication
public static final javax.servlet.ServletContext getApplication()
- Return the web application's context.
- Returns:
getCurrentSession
public static final javax.servlet.http.HttpSession getCurrentSession()
getCurrentRequest
public static final javax.servlet.http.HttpServletRequest getCurrentRequest()
findApplicationContainer
public static final Container findApplicationContainer(javax.servlet.ServletContext ctx)
getConfiguration
public static final WebConfiguration getConfiguration(javax.servlet.ServletContext ctx)
findSessionContainer
public static final Container findSessionContainer(javax.servlet.http.HttpSession ses)
findRequestContainer
public static final Container findRequestContainer(javax.servlet.http.HttpServletRequest ses)
getRequestContainer
public static final Container getRequestContainer()