info.magnolia.module.devicedetection
Class DeviceChannelResolver

java.lang.Object
  extended by info.magnolia.module.devicedetection.DeviceChannelResolver
All Implemented Interfaces:
info.magnolia.channel.ChannelResolver

public class DeviceChannelResolver
extends Object
implements info.magnolia.channel.ChannelResolver

ChannelResolver resolving based on DeviceInfo set in HttpRequest.


Field Summary
static String DESKTOP
           
static String SMARTPHONE
           
static String TABLET
           
 
Fields inherited from interface info.magnolia.channel.ChannelResolver
ALL, UNRESOLVED
 
Constructor Summary
DeviceChannelResolver(info.magnolia.cms.beans.config.ServerConfiguration server)
           
 
Method Summary
 String resolveChannel(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SMARTPHONE

public static final String SMARTPHONE
See Also:
Constant Field Values

TABLET

public static final String TABLET
See Also:
Constant Field Values

DESKTOP

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

DeviceChannelResolver

public DeviceChannelResolver(info.magnolia.cms.beans.config.ServerConfiguration server)
Method Detail

resolveChannel

public String resolveChannel(javax.servlet.http.HttpServletRequest request)
Specified by:
resolveChannel in interface info.magnolia.channel.ChannelResolver


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