eu.semiramis.policyManager.pdp.impl
Class AbstractContextHandler
java.lang.Object
eu.semiramis.policyManager.pdp.impl.AbstractContextHandler
- All Implemented Interfaces:
- ContextHandler
- Direct Known Subclasses:
- DefaultContextHandlerImpl, MultiplePdpContextHandlerImpl
public abstract class AbstractContextHandler
- extends java.lang.Object
- implements ContextHandler
Base implementation of the ContextHandler
interface
- Author:
- Paolo Roccetti
Method Summary |
java.lang.String |
getContextHandlerId()
Get the identifier of this Context Handler (to distinguish among PDP of different context handler instances). |
org.opensaml.xacml.ctx.ResponseType |
handleRequest(org.opensaml.xacml.ctx.RequestType request)
Handle a XACML request providing the corresponding response. |
void |
setConfigurationProperties(java.util.Properties properties)
Set the current configuration properties in the handler. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractContextHandler
public AbstractContextHandler()
getContextHandlerId
public java.lang.String getContextHandlerId()
- Description copied from interface:
ContextHandler
- Get the identifier of this Context Handler (to distinguish among PDP of different context handler instances). If Context Handlers are properly created,
by means of the
createContextHandler()
method in ContextHandlerFactory
class, identifiers are guarantee to be unique in the current Java environment.
- Specified by:
getContextHandlerId
in interface ContextHandler
- Returns:
- a
String
representation of the Context Handler identifier for this Context Handler instance
setConfigurationProperties
public void setConfigurationProperties(java.util.Properties properties)
throws ConfigurationException
- Description copied from interface:
ContextHandler
- Set the current configuration properties in the handler.
- Specified by:
setConfigurationProperties
in interface ContextHandler
- Parameters:
properties
- the new configuration properties
- Throws:
ConfigurationException
- if the new configuration contains errors and cannot be applied
handleRequest
public org.opensaml.xacml.ctx.ResponseType handleRequest(org.opensaml.xacml.ctx.RequestType request)
throws EvaluationException
- Description copied from interface:
ContextHandler
- Handle a XACML request providing the corresponding response.
- Specified by:
handleRequest
in interface ContextHandler
- Parameters:
request
- the XACML request to handle
- Returns:
- the corresponding XACML response
- Throws:
EvaluationException
- if an exception occurs during request handling