|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--idman.neg.impl.NegotiationHandlerImpl
Common implementation of the NegotiationHandler.
Nested Class Summary | |
(package private) static class |
NegotiationHandlerImpl.Mapper
|
Field Summary | |
static java.lang.String |
appel
APPEL namespace uri |
static boolean |
debug
flag, debug |
protected java.util.List |
listeners
|
static java.lang.String |
p3p
P3P namespace uri |
static boolean |
printout
flag, verbose |
Constructor Summary | |
(package private) |
NegotiationHandlerImpl()
Creates the object. |
Method Summary | |
void |
addListener(idman.neg.NegotiationListener listener)
|
(package private) boolean |
allowSend(java.util.List l,
NegotiationHandlerImpl.Mapper mapper)
|
boolean |
allowSend(java.lang.String[] ids,
java.lang.String[] recipient,
java.lang.String[] purpose,
java.lang.String retention)
|
java.util.Map |
getReceivedData()
Returns the received data. |
java.lang.String[] |
getReceivedPurpose(java.lang.String key,
java.lang.String retention)
Returns the received purposes for given data and corresponding retention. |
java.lang.String[] |
getReceivedRecipient(java.lang.String key,
java.lang.String retention)
Returns the received recipients for given data and corresponding retention. |
java.lang.String[] |
getReceivedRetention(java.lang.String key)
Returns the storage durations for given data. |
(package private) abstract java.util.Collection |
getRequestData(java.util.Collection requiredData,
java.util.Collection receivedData)
Returns the new data to request in next p3p-document, implemented in subclasses. |
java.util.Map |
getSentData()
Returns the sent data. |
java.lang.String[] |
getSentPurpose(java.lang.String key,
java.lang.String retention)
Returns the sent purposes for given data and corresponding retention. |
java.lang.String[] |
getSentRecipient(java.lang.String key,
java.lang.String retention)
Returns the sent recipients for given data and corresponding retention. |
java.lang.String[] |
getSentRetention(java.lang.String key)
Returns the storage durations for given data. |
(package private) abstract java.util.Collection |
getTransferData(java.util.Collection requestedData,
java.util.Collection sentData,
java.util.Collection allowedData,
java.util.Collection allData)
Returns transfer data in List, implemented in subclasses. |
void |
init(idman.neg.PersonalData personaldata,
org.w3c.dom.Document ruleset)
Sets the data (PersonalData) and data-handling (ruleset). |
idman.neg.NegotiationResult |
negotiate(org.w3c.dom.Document request)
Returns the NegotiationResult. |
void |
notifyReceived(java.lang.String[] ids,
java.lang.String[] recipient,
java.lang.String[] purpose,
java.lang.String retention)
|
void |
notifySent(java.lang.String[] ids,
java.lang.String[] recipient,
java.lang.String[] purpose,
java.lang.String retention)
|
protected static void |
print(java.lang.String name,
java.util.Collection data)
Prints a prefix and the data contained in List to System.out. |
protected static void |
print(java.lang.String name,
java.util.Map data)
Prints a prefix and the data contained in Map to System.out. |
void |
removeListener(idman.neg.NegotiationListener listener)
|
void |
setInitialRequiredData(org.w3c.dom.Document document)
Sets the required data on Negotiation-start. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean printout
public static boolean debug
public static final java.lang.String p3p
public static final java.lang.String appel
protected final java.util.List listeners
Constructor Detail |
NegotiationHandlerImpl() throws java.lang.Exception
Method Detail |
public void init(idman.neg.PersonalData personaldata, org.w3c.dom.Document ruleset) throws java.lang.Exception
init
in interface NegotiationHandler
personaldata
- Data to discloseruleset
- Rules for disclosure
java.lang.Exception
public void setInitialRequiredData(org.w3c.dom.Document document)
setInitialRequiredData
in interface NegotiationHandler
document
- 1st requestpublic java.util.Map getReceivedData()
getReceivedData
in interface NegotiationHandler
public java.util.Map getSentData()
getSentData
in interface NegotiationHandler
public java.lang.String[] getReceivedPurpose(java.lang.String key, java.lang.String retention)
NegotiationHandler
getReceivedPurpose
in interface NegotiationHandler
key
- name of dataretention
- storage duration
public java.lang.String[] getReceivedRecipient(java.lang.String key, java.lang.String retention)
NegotiationHandler
getReceivedRecipient
in interface NegotiationHandler
key
- name of dataretention
- storage duration
public java.lang.String[] getReceivedRetention(java.lang.String key)
NegotiationHandler
getReceivedRetention
in interface NegotiationHandler
key
- name of data
public java.lang.String[] getSentPurpose(java.lang.String key, java.lang.String retention)
NegotiationHandler
getSentPurpose
in interface NegotiationHandler
key
- name of dataretention
- storage duration
public java.lang.String[] getSentRecipient(java.lang.String key, java.lang.String retention)
NegotiationHandler
getSentRecipient
in interface NegotiationHandler
key
- name of dataretention
- storage duration
public java.lang.String[] getSentRetention(java.lang.String key)
NegotiationHandler
getSentRetention
in interface NegotiationHandler
key
- name of data
public idman.neg.NegotiationResult negotiate(org.w3c.dom.Document request)
negotiate
in interface NegotiationHandler
request
- Request
abstract java.util.Collection getTransferData(java.util.Collection requestedData, java.util.Collection sentData, java.util.Collection allowedData, java.util.Collection allData) throws java.lang.Exception
requestedData
- allData
-
java.lang.Exception
abstract java.util.Collection getRequestData(java.util.Collection requiredData, java.util.Collection receivedData) throws java.lang.Exception
requiredData
- receivedData
-
java.lang.Exception
protected static void print(java.lang.String name, java.util.Map data)
name
- prefixdata
- to printprotected static void print(java.lang.String name, java.util.Collection data)
name
- prefixdata
- to printpublic void addListener(idman.neg.NegotiationListener listener)
addListener
in interface NegotiationHandler
public void removeListener(idman.neg.NegotiationListener listener)
removeListener
in interface NegotiationHandler
public void notifySent(java.lang.String[] ids, java.lang.String[] recipient, java.lang.String[] purpose, java.lang.String retention)
public void notifyReceived(java.lang.String[] ids, java.lang.String[] recipient, java.lang.String[] purpose, java.lang.String retention)
public boolean allowSend(java.lang.String[] ids, java.lang.String[] recipient, java.lang.String[] purpose, java.lang.String retention)
boolean allowSend(java.util.List l, NegotiationHandlerImpl.Mapper mapper)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |