XACMLConstants.ATTRIBUTEID_RESOURCE_ID,
null,
new URI(request.getRequestURI())));
//Create an action type
ActionType actionType = new ActionType();
actionType.getAttribute().add(
RequestAttributeFactory.createStringAttributeType(
XACMLConstants.ATTRIBUTEID_ACTION_ID,
"jboss.org",
action));
Enumeration<String> enumer = request.getParameterNames();
while(enumer.hasMoreElements())
{
String paramName = enumer.nextElement();
String paramValue = request.getParameter(paramName);
URI actionUri = new URI(actionURIBase + paramName);
actionType.getAttribute().add(
RequestAttributeFactory.createStringAttributeType(
actionUri.toASCIIString(),
"jboss.org",
paramValue));
}