idman.neg
Class NegotiationHandlerFactory

java.lang.Object
  |
  +--idman.neg.NegotiationHandlerFactory

public class NegotiationHandlerFactory
extends java.lang.Object

Factory class creates a NegotiationHandler-object with specified strategy.

Since:
19.07.2002
Version:
$Id: NegotiationHandlerFactory.java,v 1.9 2003/11/24 09:20:34 tk4 Exp $
Author:
Sven Doering

Field Summary
static java.lang.String RELEVANTSTRATEGY
          already implemented: eager negotiation strategy, relevant data will be send - except of blocked and negotiated data
 
Constructor Summary
NegotiationHandlerFactory()
           
 
Method Summary
static void addNewNegotiationHandler(java.lang.String classname, java.lang.String strategy)
          Registers a new NegotiationHandler and strategy.
static java.lang.String[] getNamesOfImplementedStrategies()
          Return the names of all implemented strategies.
static idman.neg.NegotiationHandler newNegotiationHandler(idman.neg.PersonalData data, org.w3c.dom.Document ruleset, java.lang.String strategy)
          Returns an initialized NegotiationHandler instance for the specified strategy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RELEVANTSTRATEGY

public static final java.lang.String RELEVANTSTRATEGY
already implemented: eager negotiation strategy, relevant data will be send - except of blocked and negotiated data

See Also:
Constant Field Values
Constructor Detail

NegotiationHandlerFactory

public NegotiationHandlerFactory()
Method Detail

newNegotiationHandler

public static idman.neg.NegotiationHandler newNegotiationHandler(idman.neg.PersonalData data,
                                                                 org.w3c.dom.Document ruleset,
                                                                 java.lang.String strategy)
                                                          throws java.lang.Exception
Returns an initialized NegotiationHandler instance for the specified strategy.

Parameters:
data - Data to disclose
ruleset - Rules for disclosure
strategy - Name of negotiation strategy
Returns:
NegotiationHandler handler with specified negotiation strategy
java.lang.Exception

getNamesOfImplementedStrategies

public static java.lang.String[] getNamesOfImplementedStrategies()
Return the names of all implemented strategies.

Returns:
String[] strategy-names

addNewNegotiationHandler

public static void addNewNegotiationHandler(java.lang.String classname,
                                            java.lang.String strategy)
Registers a new NegotiationHandler and strategy. If the implementation of the strategy-name already exists, the old implementation is removed.

Parameters:
classname - Full qualified classname of NegotiationHandler
strategy - Name of negotiation strategy


Copyright © 2003 DRIM Team. All Rights Reserved.