info.magnolia.cms.security
Class ContentSecurityFilter
java.lang.Object
info.magnolia.cms.filters.AbstractMgnlFilter
info.magnolia.cms.security.BaseSecurityFilter
info.magnolia.cms.security.ContentSecurityFilter
- All Implemented Interfaces:
- MgnlFilter, javax.servlet.Filter
public class ContentSecurityFilter
- extends BaseSecurityFilter
Used to check if the user can read the requested content. Also sets appropriate status on the response in case of unallowed access.
This filter normally resides behind the cache filter.
- Version:
- $Id$
Method Summary |
boolean |
isAllowed(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Implementations need to return false if the request can not be proceeded with, but also need to set an appropriate error code. |
Methods inherited from class info.magnolia.cms.filters.AbstractMgnlFilter |
acceptsEncoding, acceptsGzipEncoding, addAndVerifyHeader, addBypass, addMapping, bypasses, destroy, doFilter, getBypasses, getDispatching, getMapping, getMappings, getName, headerContains, init, isEnabled, mapsTo, matches, matchesDispatching, setDispatching, setEnabled, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentSecurityFilter
public ContentSecurityFilter()
isAllowed
public boolean isAllowed(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Description copied from class:
BaseSecurityFilter
- Implementations need to return false if the request can not be proceeded with, but also need to set an appropriate error code.
- Specified by:
isAllowed
in class BaseSecurityFilter
- Throws:
IOException
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.