idman.neg.impl
Class RelevantNegotiationHandler

java.lang.Object
  |
  +--idman.neg.impl.NegotiationHandlerImpl
        |
        +--idman.neg.impl.RelevantNegotiationHandler
All Implemented Interfaces:
NegotiationHandler

public class RelevantNegotiationHandler
extends NegotiationHandlerImpl

Implements the NegotiationHandler, this class represents the "relevant" negotiation strategy. Transfer of data is allowed if disclosed AND requested.

Since:
19. 07. 2002
Version:
$Id: RelevantNegotiationHandler.java,v 1.8 2003/11/24 08:48:41 tk4 Exp $
Author:
Sven Doering

Nested Class Summary
 
Nested classes inherited from class idman.neg.impl.NegotiationHandlerImpl
NegotiationHandlerImpl.Mapper
 
Field Summary
 
Fields inherited from class idman.neg.impl.NegotiationHandlerImpl
appel, debug, listeners, p3p, printout
 
Constructor Summary
RelevantNegotiationHandler()
          Creates the object.
 
Method Summary
(package private)  java.util.Collection getRequestData(java.util.Collection requiredData, java.util.Collection receivedData)
          Returns the data to request in next P3P-document.
(package private)  java.util.Collection getTransferData(java.util.Collection requestedData, java.util.Collection sentData, java.util.Collection allowedData, java.util.Collection allData)
          Returns the data to send in next P3P-document.
 
Methods inherited from class idman.neg.impl.NegotiationHandlerImpl
addListener, allowSend, allowSend, getReceivedData, getReceivedPurpose, getReceivedRecipient, getReceivedRetention, getSentData, getSentPurpose, getSentRecipient, getSentRetention, init, negotiate, notifyReceived, notifySent, print, print, removeListener, setInitialRequiredData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelevantNegotiationHandler

public RelevantNegotiationHandler()
                           throws java.lang.Exception
Creates the object.

Method Detail

getTransferData

java.util.Collection getTransferData(java.util.Collection requestedData,
                                     java.util.Collection sentData,
                                     java.util.Collection allowedData,
                                     java.util.Collection allData)
                               throws java.lang.Exception
Returns the data to send in next P3P-document. Eager-strategy: send all data, except of already sent and negotiate-data.

Specified by:
getTransferData in class NegotiationHandlerImpl
Parameters:
requestedData -
allData -
Returns:
List data to send
java.lang.Exception

getRequestData

java.util.Collection getRequestData(java.util.Collection requiredData,
                                    java.util.Collection receivedData)
                              throws java.lang.Exception
Returns the data to request in next P3P-document. Requests all negotiate data for all new conditions.

Specified by:
getRequestData in class NegotiationHandlerImpl
Parameters:
requiredData -
receivedData -
Returns:
List data to request
java.lang.Exception


Copyright © 2003 DRIM Team. All Rights Reserved.