org.moremotion.adom
Class ADOMManager

java.lang.Object
  extended by org.moremotion.adom.ADOMManager

public class ADOMManager
extends java.lang.Object

Version:
$Id: ADOMManager.java 51 2008-03-10 11:46:54Z erkan $

Constructor Summary
ADOMManager()
           
 
Method Summary
static ADOM getApplicationADOM(javax.servlet.ServletContext context, java.lang.String name)
          Finds the ADOM saved in the servlet context by the given name and returns it.
static ADOM getRequestADOM(javax.servlet.http.HttpServletRequest request, java.lang.String name)
          Finds the ADOM saved in the request by the given name and returns it.
static ADOM getSessionADOM(javax.servlet.http.HttpSession session, java.lang.String name)
          Finds the ADOM saved in the session by the given name and returns it.
static ADOM newApplicationADOM(javax.servlet.ServletContext context, java.lang.String name)
          Creates a new Application ADOM and saves it in the servlet context.
static ADOM newRequestADOM(javax.servlet.http.HttpServletRequest request, java.lang.String name)
          Creates a new Request ADOM and saves it in the request.
static ADOM newSessionADOM(javax.servlet.http.HttpSession session, java.lang.String name)
          Creates a new Session ADOM and saves it in the session.
static void removeApplicationADOM(javax.servlet.ServletContext context, java.lang.String name)
          Finds the ADOM in the servlet context by given name and removes it.
static void removeRequestADOM(javax.servlet.http.HttpServletRequest request, java.lang.String name)
          Finds the ADOM in the request by given name and removes it.
static void removeSessionADOM(javax.servlet.http.HttpSession session, java.lang.String name)
          Finds the ADOM in the session by given name and removes it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ADOMManager

public ADOMManager()
Method Detail

newRequestADOM

public static ADOM newRequestADOM(javax.servlet.http.HttpServletRequest request,
                                  java.lang.String name)
Creates a new Request ADOM and saves it in the request.

Parameters:
request - Where the ADOM is saved.
name - Name of the ADOM.
Returns:
Newly created ADOM.

newSessionADOM

public static ADOM newSessionADOM(javax.servlet.http.HttpSession session,
                                  java.lang.String name)
Creates a new Session ADOM and saves it in the session.

Parameters:
session - Where the ADOM is saved.
name - Name of the ADOM.
Returns:
Newly created ADOM.

newApplicationADOM

public static ADOM newApplicationADOM(javax.servlet.ServletContext context,
                                      java.lang.String name)
Creates a new Application ADOM and saves it in the servlet context.

Parameters:
context - Where the ADOM is saved.
name - Name of the ADOM.
Returns:
Newly created ADOM.

getRequestADOM

public static ADOM getRequestADOM(javax.servlet.http.HttpServletRequest request,
                                  java.lang.String name)
Finds the ADOM saved in the request by the given name and returns it.

Parameters:
request - Where the ADOM is searched
name - The name of the ADOM
Returns:
null if ADOM cannot be found.

getSessionADOM

public static ADOM getSessionADOM(javax.servlet.http.HttpSession session,
                                  java.lang.String name)
Finds the ADOM saved in the session by the given name and returns it.

Returns:
null if ADOM cannot be found.

getApplicationADOM

public static ADOM getApplicationADOM(javax.servlet.ServletContext context,
                                      java.lang.String name)
Finds the ADOM saved in the servlet context by the given name and returns it.

Returns:
null if ADOM cannot be found.

removeRequestADOM

public static void removeRequestADOM(javax.servlet.http.HttpServletRequest request,
                                     java.lang.String name)
Finds the ADOM in the request by given name and removes it.


removeSessionADOM

public static void removeSessionADOM(javax.servlet.http.HttpSession session,
                                     java.lang.String name)
Finds the ADOM in the session by given name and removes it.


removeApplicationADOM

public static void removeApplicationADOM(javax.servlet.ServletContext context,
                                         java.lang.String name)
Finds the ADOM in the servlet context by given name and removes it.



Copyright © 2002-2008 MOR YAZILIM. All Rights Reserved.