org.ogf.graap.wsag.server.actions.impl
Class HandlerContext

java.lang.Object
  extended by org.ogf.graap.wsag.server.actions.impl.HandlerContext
All Implemented Interfaces:
IActionHandlerContext

public class HandlerContext
extends Object
implements IActionHandlerContext

Author:
Oliver Waeldrich

Constructor Summary
HandlerContext()
           
 
Method Summary
 AgreementFactoryContext getFactoryContext()
          This is the shared context of the agreement factory.
 ImplementationConfigurationType getHandlerConfiguration()
          This is the configuration of the handler instance.
 WsagSession getSession()
          Returns the current WSAG4J session object when used, otherwise null.
 void setFactoryContext(AgreementFactoryContext context)
           
 void setHandlerConfiguration(ImplementationConfigurationType config)
           
 void setSession(WsagSession session)
          Sets the WSAG4J session object when available, otherwise null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerContext

public HandlerContext()
Method Detail

getFactoryContext

public AgreementFactoryContext getFactoryContext()
This is the shared context of the agreement factory. All action handler executed in a specific factory have access to this context. The agreement factory may store shared objects at initialization time in this context.

Specified by:
getFactoryContext in interface IActionHandlerContext
Returns:
the agreement factory context
See Also:
IActionHandlerContext.getFactoryContext()

setFactoryContext

public void setFactoryContext(AgreementFactoryContext context)

Parameters:
context - sets the agreement factory context

setHandlerConfiguration

public void setHandlerConfiguration(ImplementationConfigurationType config)

Parameters:
config - sets the configuration for this particular handler

getHandlerConfiguration

public ImplementationConfigurationType getHandlerConfiguration()
This is the configuration of the handler instance. The handler configuration is part of the engine configuration and may contain additional information that is required by the handler to function properly, e.g. in that way additional configuration information can be provided to initialize the handler properly.

Specified by:
getHandlerConfiguration in interface IActionHandlerContext
Returns:
the action handler configuration
See Also:
IActionHandlerContext.getHandlerConfiguration()

getSession

public WsagSession getSession()
Returns the current WSAG4J session object when used, otherwise null.

Specified by:
getSession in interface IActionHandlerContext
Returns:
the session object

setSession

public void setSession(WsagSession session)
Sets the WSAG4J session object when available, otherwise null.

Specified by:
setSession in interface IActionHandlerContext
Parameters:
session - the session object


Copyright © 2008-2012. All Rights Reserved.