org.glite.authz.pep.obligation.eesmap
public class EESObligationHandler extends org.glite.authz.pep.obligation.BaseObligationHandler implements org.glite.authz.pep.obligation.ObligationHandler
Constructor and Description |
---|
EESObligationHandler(java.lang.String name,
java.lang.String obligationId,
java.lang.String endPoint)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluateObligation(org.glite.authz.common.model.Request request,
org.glite.authz.common.model.Result result) |
protected org.glite.authz.common.model.Response |
extractResponseFromMessageContext(org.glite.authz.common.context.DecisionRequestContext messageContext)
TODO DOC extracts EES Response object from the message context inbound
message (SOAP response)
|
java.lang.String |
getEESEndpoint() |
java.lang.String |
getEntityId() |
protected org.glite.authz.common.model.Request |
mixObligationsInRequest(org.glite.authz.common.model.Request request,
org.glite.authz.common.model.Result result)
TODO EXPLAIN THE BLACK MAGIC!!!!!!
|
protected boolean |
resultContainsHandledObligationId(org.glite.authz.common.model.Result result)
Returns
true iff the result contains at least one handled
obligation |
protected void |
sendRequestToEES(org.glite.authz.common.context.DecisionRequestContext messageContext,
org.glite.authz.common.model.Request request)
Sends the "special" request to the EES server
|
void |
setEntityId(java.lang.String entityId)
Sets the OH entity ID
|
equals, getHandlerPrecedence, getId, getObligationId, hashCode, setId
public EESObligationHandler(java.lang.String name, java.lang.String obligationId, java.lang.String endPoint)
name
- The obligation handler nameobligationId
- The ID of the handled obligationendPoint
- The EES endpoint URLpublic void setEntityId(java.lang.String entityId)
entityId
- protected org.glite.authz.common.model.Request mixObligationsInRequest(org.glite.authz.common.model.Request request, org.glite.authz.common.model.Result result)
request
- result
- public java.lang.String getEntityId()
public java.lang.String getEESEndpoint()
public boolean evaluateObligation(org.glite.authz.common.model.Request request, org.glite.authz.common.model.Result result) throws org.glite.authz.pep.obligation.ObligationProcessingException
evaluateObligation
in interface org.glite.authz.pep.obligation.ObligationHandler
org.glite.authz.pep.obligation.ObligationProcessingException
protected boolean resultContainsHandledObligationId(org.glite.authz.common.model.Result result)
true
iff the result contains at least one handled
obligationresult
- the resulttrue
iff the result contains at least one handled
obligationprotected org.glite.authz.common.model.Response extractResponseFromMessageContext(org.glite.authz.common.context.DecisionRequestContext messageContext) throws EESObligationHandlerException
messageContext
- EESObligationHandlerException
protected void sendRequestToEES(org.glite.authz.common.context.DecisionRequestContext messageContext, org.glite.authz.common.model.Request request) throws EESObligationHandlerException
messageContext
- the message contextrequest
- the request to sendEESObligationHandlerException
- if an error occurs while sending the request