info.magnolia.cms.filters
Class ContentTypeFilter
java.lang.Object
info.magnolia.cms.filters.AbstractMgnlFilter
info.magnolia.cms.filters.ContentTypeFilter
- All Implemented Interfaces:
- MgnlFilter, javax.servlet.Filter
public class ContentTypeFilter
- extends AbstractMgnlFilter
TODO : rename this filter. What it really does is initialize and setup the basic,
non-content related attributes of the AggregationState. ContentType could become an
attribute of the AggregationState too and could be set later.
FIXME: the original uri should not be reset, MAGNOLIA-3204
- Version:
- $Id: ContentTypeFilter.java 41137 2011-01-06 18:19:25Z gjoseph $
- Author:
- Sameer Charles, Fabrizio Giustina, gjoseph
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 |
ContentTypeFilter
public ContentTypeFilter()
doFilter
public void doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in class AbstractMgnlFilter
- Throws:
IOException
javax.servlet.ServletException
getUriExtension
protected String getUriExtension(String originalUri)
setupContentTypeAndCharacterEncoding
protected String setupContentTypeAndCharacterEncoding(String extension,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.