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
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 |
RelevantNegotiationHandler
public RelevantNegotiationHandler()
throws java.lang.Exception
- Creates the object.
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.