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 404 2009-07-17 16:21:47Z erkan $

Field Summary
static java.lang.String ADOM_PREFIX
           
 
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(MoreMotionRequest request, java.lang.String name)
          Finds the ADOM saved in the request by the given name and returns it.
static ADOM getSessionADOM(MoreMotionSession 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(MoreMotionRequest request, java.lang.String name)
          Creates a new Request ADOM and saves it in the request.
static ADOM newSessionADOM(MoreMotionSession 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(MoreMotionRequest request, java.lang.String name)
          Finds the ADOM in the request by given name and removes it.
static void removeSessionADOM(MoreMotionSession 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
 

Field Detail

ADOM_PREFIX

public static final java.lang.String ADOM_PREFIX
See Also:
Constant Field Values
Constructor Detail

ADOMManager

public ADOMManager()
Method Detail

newRequestADOM

public static ADOM newRequestADOM(MoreMotionRequest 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(MoreMotionSession 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(MoreMotionRequest 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(MoreMotionSession 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(MoreMotionRequest request,
                                     java.lang.String name)
Finds the ADOM in the request by given name and removes it.


removeSessionADOM

public static void removeSessionADOM(MoreMotionSession 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-2011 MOR YAZILIM. All Rights Reserved.