public class DeviceResolverRequestFilter extends OncePerRequestFilter
DeviceUtils.CURRENT_DEVICE_ATTRIBUTE
. Request handlers such as @Controllers
and views may then access the currentDevice to vary their control and rendering logic, respectively.ALREADY_FILTERED_SUFFIX
logger
Constructor and Description |
---|
DeviceResolverRequestFilter()
Create a device resolving
Filter that defaults to a LiteDeviceResolver implementation. |
DeviceResolverRequestFilter(DeviceResolver deviceResolver)
Create a device resolving
Filter . |
Modifier and Type | Method and Description |
---|---|
protected void |
doFilterInternal(HttpServletRequest request,
HttpServletResponse response,
FilterChain filterChain) |
doFilter, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
addRequiredProperty, afterPropertiesSet, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
public DeviceResolverRequestFilter()
Filter
that defaults to a LiteDeviceResolver
implementation.public DeviceResolverRequestFilter(DeviceResolver deviceResolver)
Filter
.deviceResolver
- the device resolver to delegate to.protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException
doFilterInternal
in class OncePerRequestFilter
ServletException
IOException