Package org.apache.neethi
Interface PolicyRegistry
- All Known Implementing Classes:
PolicyRegistryImpl
public interface PolicyRegistry
PolicyRegistry contains (URI,Policy) pairs and it is used to resolve explicit
Policy references.
-
Method Summary
-
Method Details
-
register
Associates a key with a Policy- Parameters:
key- the key that the specified Policy to be associatedpolicy- the policy to be associated with the key
-
lookup
Returns the Policy that the specified key is mapped. Returns null if no Policy is associated with that key.- Parameters:
key- the key whose associated Policy is to be returned.- Returns:
- the policy associated with the specified key.
-
remove
Removes the mapping for this key if present.- Parameters:
key- the key whose mapping is to be removed
-