info.magnolia.module.devicedetection.filter
Class DeviceDetectionFilter

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

public class DeviceDetectionFilter
extends info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter

Detects the type of device that's requesting content. Device detection is done using mobileESP.

Version:
$Id$

Field Summary
static String DEFAULT_SITE
           
static String DEVICE_INFO
           
 
Constructor Summary
DeviceDetectionFilter(DeviceDetectionModule deviceDetectionModule)
           
 
Method Summary
 void doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
           
 
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, setDispatching, setEnabled, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SITE

public static final String DEFAULT_SITE
See Also:
Constant Field Values

DEVICE_INFO

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

DeviceDetectionFilter

@Inject
public DeviceDetectionFilter(DeviceDetectionModule deviceDetectionModule)
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 info.magnolia.cms.filters.AbstractMgnlFilter
Throws:
IOException
javax.servlet.ServletException


Copyright © 2012 Magnolia International Ltd.. All Rights Reserved.