Spring Mobile
A C D G H I L M N O P R S U V 

A

AbstractSitePathUrlFactory - Class in org.springframework.mobile.device.switcher
Abstract SiteUrlFactory implementation that differentiates each site by the HTTP request path.
AbstractSitePathUrlFactory(String) - Constructor for class org.springframework.mobile.device.switcher.AbstractSitePathUrlFactory
Creates a new abstract site path URL factory for the given mobile path.
AbstractSitePathUrlFactory(String, String) - Constructor for class org.springframework.mobile.device.switcher.AbstractSitePathUrlFactory
Creates a new abstract site path URL factory for the given mobile path and root application path.
AbstractSiteUrlFactory - Class in org.springframework.mobile.device.switcher
Abstract implementation of the SiteUrlFactory interface.
AbstractSiteUrlFactory() - Constructor for class org.springframework.mobile.device.switcher.AbstractSiteUrlFactory
 

C

CookieSitePreferenceRepository - Class in org.springframework.mobile.device.site
SitePreferenceRepository implementation that stores user preference in a Cookie.
CookieSitePreferenceRepository() - Constructor for class org.springframework.mobile.device.site.CookieSitePreferenceRepository
Creates a cookie-based SitePreferenceRepository.
CookieSitePreferenceRepository(String) - Constructor for class org.springframework.mobile.device.site.CookieSitePreferenceRepository
Creates a cookie-based SitePreferenceRepository with a custom domain value.
createSiteUrl(HttpServletRequest) - Method in class org.springframework.mobile.device.switcher.MobileSitePathUrlFactory
 
createSiteUrl(HttpServletRequest) - Method in class org.springframework.mobile.device.switcher.NormalSitePathUrlFactory
 
createSiteUrl(HttpServletRequest) - Method in interface org.springframework.mobile.device.switcher.SiteUrlFactory
Create a fully-qualified URL that can be used to redirect the user to this site.
createSiteUrl(HttpServletRequest) - Method in class org.springframework.mobile.device.switcher.StandardSiteUrlFactory
 
createSiteUrlInternal(HttpServletRequest, String, String) - Method in class org.springframework.mobile.device.switcher.AbstractSiteUrlFactory
 
CURRENT_DEVICE_ATTRIBUTE - Static variable in class org.springframework.mobile.device.DeviceUtils
The name of the request attribute the current Device is indexed by.
CURRENT_SITE_PREFERENCE_ATTRIBUTE - Static variable in interface org.springframework.mobile.device.site.SitePreferenceHandler
The name of the request attribute that holds the current user's site preference value.

D

Device - Interface in org.springframework.mobile.device
A model for the user agent or device that submitted the current request.
DeviceResolver - Interface in org.springframework.mobile.device
Service interface for resolving Devices that originate web requests with the application.
DeviceResolverHandlerInterceptor - Class in org.springframework.mobile.device
A Spring MVC interceptor that resolves the Device that originated the web request before any request handler is invoked.
DeviceResolverHandlerInterceptor() - Constructor for class org.springframework.mobile.device.DeviceResolverHandlerInterceptor
Create a device resolving HandlerInterceptor that defaults to a LiteDeviceResolver implementation.
DeviceResolverHandlerInterceptor(DeviceResolver) - Constructor for class org.springframework.mobile.device.DeviceResolverHandlerInterceptor
Create a device resolving HandlerInterceptor.
DeviceResolverRequestFilter - Class in org.springframework.mobile.device
A Servlet 2.3 Filter that resolves the Device that originated the web request.
DeviceResolverRequestFilter() - Constructor for class org.springframework.mobile.device.DeviceResolverRequestFilter
Create a device resolving Filter that defaults to a LiteDeviceResolver implementation.
DeviceResolverRequestFilter(DeviceResolver) - Constructor for class org.springframework.mobile.device.DeviceResolverRequestFilter
Create a device resolving Filter.
DeviceType - Enum in org.springframework.mobile.device
Enumeration for the type of device that has been resolved
DeviceUtils - Class in org.springframework.mobile.device
Static helper for accessing request-scoped Device values.
DeviceUtils() - Constructor for class org.springframework.mobile.device.DeviceUtils
 
DeviceWebArgumentResolver - Class in org.springframework.mobile.device
Spring MVC WebArgumentResolver that resolves @Controller MethodParameters of type Device to the value of the web request's current device attribute.
DeviceWebArgumentResolver() - Constructor for class org.springframework.mobile.device.DeviceWebArgumentResolver
 
doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) - Method in class org.springframework.mobile.device.DeviceResolverRequestFilter
 
dotMobi(String) - Static method in class org.springframework.mobile.device.switcher.SiteSwitcherHandlerInterceptor
Creates a site switcher that redirects to a .mobi domain for normal site requests that either originate from a mobile device or indicate a mobile site preference.

G

getCleanMobilePath() - Method in class org.springframework.mobile.device.switcher.AbstractSitePathUrlFactory
Returns the full mobile path without a trailing slash.
getCurrentDevice(HttpServletRequest) - Static method in class org.springframework.mobile.device.DeviceUtils
Static utility method that extracts the current device from the web request.
getCurrentDevice(RequestAttributes) - Static method in class org.springframework.mobile.device.DeviceUtils
Static utility method that extracts the current device from the request attributes map.
getCurrentSitePreference(HttpServletRequest) - Static method in class org.springframework.mobile.device.site.SitePreferenceUtils
Get the current site preference for the user that originated this web request.
getCurrentSitePreference(RequestAttributes) - Static method in class org.springframework.mobile.device.site.SitePreferenceUtils
Get the current site preference for the user from the request attributes map.
getFullMobilePath() - Method in class org.springframework.mobile.device.switcher.AbstractSitePathUrlFactory
The full path of the mobile site.
getMobilePath() - Method in class org.springframework.mobile.device.switcher.AbstractSitePathUrlFactory
The mobile path with a trailing slash.
getMobileUserAgentKeywords() - Method in class org.springframework.mobile.device.LiteDeviceResolver
List of user agent keywords that identify mobile devices.
getMobileUserAgentPrefixes() - Method in class org.springframework.mobile.device.LiteDeviceResolver
List of user agent prefixes that identify mobile devices.
getNormalUserAgentKeywords() - Method in class org.springframework.mobile.device.LiteDeviceResolver
List of user agent keywords that identify normal devices.
getRequiredCurrentDevice(HttpServletRequest) - Static method in class org.springframework.mobile.device.DeviceUtils
Static utility method that extracts the current device from the web request.
getRootPath() - Method in class org.springframework.mobile.device.switcher.AbstractSitePathUrlFactory
The root path of the application with a trailing slash.
getTabletUserAgentKeywords() - Method in class org.springframework.mobile.device.LiteDeviceResolver
List of user agent keywords that identify tablet devices.

H

handleSitePreference(HttpServletRequest, HttpServletResponse) - Method in interface org.springframework.mobile.device.site.SitePreferenceHandler
Handle the site preference aspect of the web request.
handleSitePreference(HttpServletRequest, HttpServletResponse) - Method in class org.springframework.mobile.device.site.StandardSitePreferenceHandler
 

I

init() - Method in class org.springframework.mobile.device.LiteDeviceResolver
Initialize this device resolver implementation.
isMobile() - Method in interface org.springframework.mobile.device.Device
True if this device is a mobile device such as an Apple iPhone or an Nexus One Android.
isMobile() - Method in enum org.springframework.mobile.device.site.SitePreference
Tests if this is the 'mobile' SitePreference.
isNormal() - Method in interface org.springframework.mobile.device.Device
True if this device is not a mobile or tablet device.
isRequestForSite(HttpServletRequest) - Method in class org.springframework.mobile.device.switcher.MobileSitePathUrlFactory
 
isRequestForSite(HttpServletRequest) - Method in class org.springframework.mobile.device.switcher.NormalSitePathUrlFactory
 
isRequestForSite(HttpServletRequest) - Method in interface org.springframework.mobile.device.switcher.SiteUrlFactory
Did the request originate from this site? Used to determine what site the user is currently viewing.
isRequestForSite(HttpServletRequest) - Method in class org.springframework.mobile.device.switcher.StandardSiteUrlFactory
 
isTablet() - Method in interface org.springframework.mobile.device.Device
True if this device is a tablet device such as an Apple iPad or a Motorola Xoom.

L

LiteDeviceResolver - Class in org.springframework.mobile.device
A "lightweight" device resolver algorithm based on Wordpress's Mobile pack.
LiteDeviceResolver() - Constructor for class org.springframework.mobile.device.LiteDeviceResolver
 
LiteDeviceResolver(List<String>) - Constructor for class org.springframework.mobile.device.LiteDeviceResolver
 
loadSitePreference(HttpServletRequest) - Method in class org.springframework.mobile.device.site.CookieSitePreferenceRepository
 
loadSitePreference(HttpServletRequest) - Method in interface org.springframework.mobile.device.site.SitePreferenceRepository
Load the user's site preference.

M

mDot(String) - Static method in class org.springframework.mobile.device.switcher.SiteSwitcherHandlerInterceptor
Creates a site switcher that redirects to a m. domain for normal site requests that either originate from a mobile device or indicate a mobile site preference.
MobileSitePathUrlFactory - Class in org.springframework.mobile.device.switcher
Path based site URL factory implementation that handles requests for the "mobile" site.
MobileSitePathUrlFactory(String) - Constructor for class org.springframework.mobile.device.switcher.MobileSitePathUrlFactory
Creates a new mobile site path URL factory.
MobileSitePathUrlFactory(String, String) - Constructor for class org.springframework.mobile.device.switcher.MobileSitePathUrlFactory
Creates a new mobile site path URL factory.

N

NormalSitePathUrlFactory - Class in org.springframework.mobile.device.switcher
Path based site URL factory implementation that handles requests for the "normal" site.
NormalSitePathUrlFactory(String) - Constructor for class org.springframework.mobile.device.switcher.NormalSitePathUrlFactory
Creates a new normal site path URL factory.
NormalSitePathUrlFactory(String, String) - Constructor for class org.springframework.mobile.device.switcher.NormalSitePathUrlFactory
Creates a new normal site path URL factory.

O

optionalPort(HttpServletRequest) - Method in class org.springframework.mobile.device.switcher.AbstractSiteUrlFactory
Returns the HTTP port specified on the given request if it's a non-standard port.
org.springframework.mobile.device - package org.springframework.mobile.device
Public API for device resolution.
org.springframework.mobile.device.site - package org.springframework.mobile.device.site
Ability for the user to specify whether they prefer the mobile or normal site.
org.springframework.mobile.device.switcher - package org.springframework.mobile.device.switcher
Mobile site switcher for Spring MVC-based web apps.

P

preHandle(HttpServletRequest, HttpServletResponse, Object) - Method in class org.springframework.mobile.device.DeviceResolverHandlerInterceptor
 
preHandle(HttpServletRequest, HttpServletResponse, Object) - Method in class org.springframework.mobile.device.site.SitePreferenceHandlerInterceptor
 
preHandle(HttpServletRequest, HttpServletResponse, Object) - Method in class org.springframework.mobile.device.switcher.SiteSwitcherHandlerInterceptor
 

R

resolveArgument(MethodParameter, NativeWebRequest) - Method in class org.springframework.mobile.device.DeviceWebArgumentResolver
 
resolveArgument(MethodParameter, NativeWebRequest) - Method in class org.springframework.mobile.device.site.SitePreferenceWebArgumentResolver
 
resolveDevice(HttpServletRequest) - Method in interface org.springframework.mobile.device.DeviceResolver
Resolve the device that originated the web request.
resolveDevice(HttpServletRequest) - Method in class org.springframework.mobile.device.LiteDeviceResolver
 
resolveFallback(HttpServletRequest) - Method in class org.springframework.mobile.device.LiteDeviceResolver
Fallback called if no mobile device is matched by this resolver.

S

saveSitePreference(SitePreference, HttpServletRequest, HttpServletResponse) - Method in class org.springframework.mobile.device.site.CookieSitePreferenceRepository
 
saveSitePreference(SitePreference, HttpServletRequest, HttpServletResponse) - Method in interface org.springframework.mobile.device.site.SitePreferenceRepository
Save the user's site preference.
SitePreference - Enum in org.springframework.mobile.device.site
Possible site preference values.
SitePreferenceHandler - Interface in org.springframework.mobile.device.site
Service interface for site preference management.
SitePreferenceHandlerInterceptor - Class in org.springframework.mobile.device.site
A Spring MVC interceptor that, on preHandle, delegates to a SitePreferenceHandler to resolve the SitePreference of the user that originated the web request.
SitePreferenceHandlerInterceptor() - Constructor for class org.springframework.mobile.device.site.SitePreferenceHandlerInterceptor
 
SitePreferenceHandlerInterceptor(SitePreferenceHandler) - Constructor for class org.springframework.mobile.device.site.SitePreferenceHandlerInterceptor
 
SitePreferenceRepository - Interface in org.springframework.mobile.device.site
A strategy for storing a user's site preference.
SitePreferenceUtils - Class in org.springframework.mobile.device.site
Static helper for accessing request-scoped SitePreference values.
SitePreferenceWebArgumentResolver - Class in org.springframework.mobile.device.site
Spring MVC WebArgumentResolver that resolves @Controller MethodParameters of type SitePreference to the value of the web request's current site preference attribute.
SitePreferenceWebArgumentResolver() - Constructor for class org.springframework.mobile.device.site.SitePreferenceWebArgumentResolver
 
SiteSwitcherHandlerInterceptor - Class in org.springframework.mobile.device.switcher
A Spring MVC interceptor that switches the user between the mobile and normal site by employing a specific switching algorithm.
SiteSwitcherHandlerInterceptor(SiteUrlFactory, SiteUrlFactory, SitePreferenceHandler) - Constructor for class org.springframework.mobile.device.switcher.SiteSwitcherHandlerInterceptor
Creates a new site switcher.
SiteUrlFactory - Interface in org.springframework.mobile.device.switcher
Strategy for constructing different site URLs, such as the 'mobile' site URL.
StandardSitePreferenceHandler - Class in org.springframework.mobile.device.site
A helper that resolves the user's site preference and makes it available as a request attribute.
StandardSitePreferenceHandler(SitePreferenceRepository) - Constructor for class org.springframework.mobile.device.site.StandardSitePreferenceHandler
Creates a new site preference handler.
StandardSiteUrlFactory - Class in org.springframework.mobile.device.switcher
Site URL factory implementation that differentiates each site by the value of the server name field.
StandardSiteUrlFactory(String) - Constructor for class org.springframework.mobile.device.switcher.StandardSiteUrlFactory
Creates a new StandardSiteUrlFactory.

U

urlPath(String) - Static method in class org.springframework.mobile.device.switcher.SiteSwitcherHandlerInterceptor
Creates a site switcher that redirects to a path on the current domain for normal site requests that either originate from a mobile device or indicate a mobile site preference.
urlPath(String, String) - Static method in class org.springframework.mobile.device.switcher.SiteSwitcherHandlerInterceptor
Creates a site switcher that redirects to a path on the current domain for normal site requests that either originate from a mobile device or indicate a mobile site preference.

V

valueOf(String) - Static method in enum org.springframework.mobile.device.DeviceType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.springframework.mobile.device.site.SitePreference
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.springframework.mobile.device.DeviceType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.springframework.mobile.device.site.SitePreference
Returns an array containing the constants of this enum type, in the order they are declared.
A C D G H I L M N O P R S U V 
Spring Mobile