public abstract class AbstractFilter extends java.lang.Object implements RESTFilter
| Constructor and Description |
|---|
AbstractFilter()
Default constructor obtains an instance of the Context Handler.
|
| Modifier and Type | Method and Description |
|---|---|
ContextHandler |
getContextHandler() |
protected java.util.Map<java.net.URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> |
getEnvironment(javax.servlet.http.HttpServletRequest request)
Returns a map of environment attributes.
|
protected static java.lang.String[] |
getPathParts(javax.servlet.http.HttpServletRequest request) |
protected java.util.List<java.util.Map<java.net.URI,java.util.List<org.jboss.security.xacml.sunxacml.attr.AttributeValue>>> |
getSubjects(javax.servlet.http.HttpServletRequest request)
Creates a list of Subjects from a servlet request.
|
protected boolean |
isDatastream(java.lang.String item)
Function to determine whether a parameter is a datastream or a
dissemination.
|
protected boolean |
isDate(java.lang.String item)
Checks whether a parameter fits the date pattern.
|
protected boolean |
isPID(java.lang.String item)
Function to determine whether a parameter is a PID.
|
void |
setContextHandler(ContextHandler contextHandler) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleRequestpublic AbstractFilter()
throws PEPException
PEPExceptionpublic void setContextHandler(ContextHandler contextHandler)
public ContextHandler getContextHandler()
protected java.util.List<java.util.Map<java.net.URI,java.util.List<org.jboss.security.xacml.sunxacml.attr.AttributeValue>>> getSubjects(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
request - the servlet requestjavax.servlet.ServletExceptionprotected java.util.Map<java.net.URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> getEnvironment(javax.servlet.http.HttpServletRequest request)
request - the servlet request from which to obtain the attributesprotected boolean isPID(java.lang.String item)
item - the uri parameterprotected boolean isDatastream(java.lang.String item)
item - the uri parameterprotected boolean isDate(java.lang.String item)
item - the dateprotected static java.lang.String[] getPathParts(javax.servlet.http.HttpServletRequest request)
Copyright © 2014 DuraSpace. All Rights Reserved.