public void before(Object[] context,
ServletRequest httpRequest,
ServletResponse httpResponse,
int dispatch) {
//Save the old
// context[policyContextIDIndex] = PolicyContext.getContextID();
context[callersIndex] = ContextManager.getCallers();
//Set the new
// PolicyContext.setContextID(policyContextID);
// PolicyContext.setHandlerData(httpRequest);
if (httpRequest != null){
context[defaultSubjectIndex] = httpRequest.getAttribute(DEFAULT_SUBJECT);
httpRequest.setAttribute(DEFAULT_SUBJECT, defaultSubject);
}
if (next != null) {
next.before(context, httpRequest, httpResponse, dispatch);
}
}
|