org.ogf.graap.wsag.server.actions
Class AbstractNegotiationAction

java.lang.Object
  extended by org.ogf.graap.wsag.server.actions.AbstractNegotiationAction
All Implemented Interfaces:
IActionHandler, INegotiationAction
Direct Known Subclasses:
NegotiatePendingAgreementAction, NegotiationUnsupportedAction, Sample1NegotiateAgreementAction, Sample2NegotiateAgreementAction, SampleNegotiateAction

public abstract class AbstractNegotiationAction
extends Object
implements INegotiationAction

AbstractCreateAgreementAction Abstract base class for agreement creation actions.

Author:
Oliver Waeldrich , Oliver Waeldrich

Constructor Summary
AbstractNegotiationAction()
           
 
Method Summary
 IActionHandlerContext getHandlerContext()
          Returns the context of this action handler.
 Map<String,Object> getNegotiationContext(Map invocationContext)
          Returns the negotiation context for the current invocation.
 void initialize()
          Default implementation of action initialization.
 void setHandlerContext(IActionHandlerContext context)
          Sets the context for this action handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ogf.graap.wsag.server.actions.INegotiationAction
negotiate
 

Constructor Detail

AbstractNegotiationAction

public AbstractNegotiationAction()
Method Detail

getHandlerContext

public IActionHandlerContext getHandlerContext()
Returns the context of this action handler. Returns the context of this action handler.

Specified by:
getHandlerContext in interface IActionHandler
Returns:
Returns the context of this action handler.

setHandlerContext

public void setHandlerContext(IActionHandlerContext context)
Sets the context for this action handler. Sets the context for this action handler.

Specified by:
setHandlerContext in interface IActionHandler
Parameters:
context -
See Also:
IActionHandlerContext

initialize

public void initialize()
                throws ActionInitializationException
Default implementation of action initialization. Subclasses may overwrite this method in order to provide a custom initialization of a handler. Initializes an action handler. This method is called when a agreement factory action initializes its action handlers. It is called once during the the engine initialization.

Specified by:
initialize in interface IActionHandler
Throws:
ActionInitializationException

getNegotiationContext

public Map<String,Object> getNegotiationContext(Map invocationContext)
Returns the negotiation context for the current invocation.

Parameters:
invocationContext - the invocation context provided to the negotiation action
Returns:
the context of the negotiation instance


Copyright © 2008-2012. All Rights Reserved.