info.magnolia.cms.filters
Class MultiChannelFilter

java.lang.Object
  extended by info.magnolia.cms.filters.AbstractMgnlFilter
      extended by info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter
          extended by info.magnolia.cms.filters.MultiChannelFilter
All Implemented Interfaces:
MgnlFilter, javax.servlet.Filter

public class MultiChannelFilter
extends OncePerRequestAbstractMgnlFilter

Filter that resolves the site to use by considering variation of the set channel. Resulting site gets set in AggregationState.


Field Summary
static String ENFORCE_CHANNEL_PARAMETER
           
 
Constructor Summary
MultiChannelFilter(ChannelManager channelManager)
           
 
Method Summary
 void doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
           
protected  String resolveChannel(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter
bypasses, doFilter
 
Methods inherited from class info.magnolia.cms.filters.AbstractMgnlFilter
acceptsEncoding, acceptsGzipEncoding, addAndVerifyHeader, addBypass, addMapping, destroy, getBypasses, getDispatching, getMapping, getMappings, getName, headerContains, init, isEnabled, mapsTo, matches, matchesDispatching, setBypasses, setDispatching, setEnabled, setMappings, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENFORCE_CHANNEL_PARAMETER

public static final String ENFORCE_CHANNEL_PARAMETER
See Also:
Constant Field Values
Constructor Detail

MultiChannelFilter

@Inject
public MultiChannelFilter(ChannelManager channelManager)
Method Detail

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

resolveChannel

protected String resolveChannel(javax.servlet.http.HttpServletRequest request)


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.