Package org.fcrepo.auth.webac
Class WebACFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
org.springframework.web.filter.RequestContextFilter
org.fcrepo.auth.webac.WebACFilter
- All Implemented Interfaces:
javax.servlet.Filter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.EnvironmentAware,org.springframework.core.env.EnvironmentCapable,org.springframework.web.context.ServletContextAware
- Author:
- peichman
-
Field Summary
Fields inherited from class org.springframework.web.filter.OncePerRequestFilter
ALREADY_FILTERED_SUFFIXFields inherited from class org.springframework.web.filter.GenericFilterBean
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) static URIgetBaseUri(javax.servlet.http.HttpServletRequest request) Calculate a base Uri for this request.static org.fcrepo.http.commons.api.rdf.HttpIdentifierConverteridentifierConverter(javax.servlet.http.HttpServletRequest request) Generate a HttpIdentifierConverter from the request URL.Methods inherited from class org.springframework.web.filter.RequestContextFilter
setThreadContextInheritable, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatchMethods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilterMethods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
-
Constructor Details
-
WebACFilter
public WebACFilter()
-
-
Method Details
-
identifierConverter
public static org.fcrepo.http.commons.api.rdf.HttpIdentifierConverter identifierConverter(javax.servlet.http.HttpServletRequest request) Generate a HttpIdentifierConverter from the request URL.- Parameters:
request- the servlet request.- Returns:
- a converter.
-
getBaseUri
Calculate a base Uri for this request.- Parameters:
request- the incoming request- Returns:
- the URI
-
doFilterInternal
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) throws javax.servlet.ServletException, IOException - Overrides:
doFilterInternalin classorg.springframework.web.filter.RequestContextFilter- Throws:
javax.servlet.ServletExceptionIOException
-