uk.org.ogsadai.sessions.impl
Class SessionStrategyFactoryImpl

java.lang.Object
  |
  +--uk.org.ogsadai.sessions.impl.SessionStrategyFactoryImpl
All Implemented Interfaces:
SessionStrategyFactory

public class SessionStrategyFactoryImpl
extends java.lang.Object
implements SessionStrategyFactory

A simple session strategy factory that creates stategies based on the content of the session child element of specified documents.

Author:
The OGSA-DAI Project Team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
           
 
Constructor Summary
SessionStrategyFactoryImpl()
           
 
Method Summary
 SessionStrategy createSessionStrategy(org.w3c.dom.Document document)
          Creates and returns an appropriate SessionStrategy object for the given perform document.
private  SessionStrategy createSessionStrategyFromElement(org.w3c.dom.Element sessionElement)
          Creates and returns a session strategy based upon the values within the given XML fragment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
See Also:
Constant Field Values
Constructor Detail

SessionStrategyFactoryImpl

public SessionStrategyFactoryImpl()
Method Detail

createSessionStrategy

public SessionStrategy createSessionStrategy(org.w3c.dom.Document document)
Description copied from interface: SessionStrategyFactory
Creates and returns an appropriate SessionStrategy object for the given perform document.

Specified by:
createSessionStrategy in interface SessionStrategyFactory
Parameters:
document - The OGSA-DAI perform document
Returns:
a new SessionStrategy.

createSessionStrategyFromElement

private SessionStrategy createSessionStrategyFromElement(org.w3c.dom.Element sessionElement)
Creates and returns a session strategy based upon the values within the given XML fragment.

Parameters:
sessionElement - XML fragment.
Returns:
session strategy.