Package lumis.portal.mobileapp
Class MobileAPIUtils
- java.lang.Object
-
- lumis.portal.mobileapp.MobileAPIUtils
-
public class MobileAPIUtils extends java.lang.Object
Mobile API utilities.- Since:
- 10.0.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description MobileAPIUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getAppId(javax.servlet.http.HttpServletRequest httpServletRequest)
Returns the mobile app identifier present in request headers ornull
if there's no such information.static java.lang.String
getAppVersion(javax.servlet.http.HttpServletRequest httpServletRequest)
Returns the mobile app version present in request headers ornull
if there's no such information.static java.lang.String
getGCMProjectId()
Returns the currently configured GCM project id.
-
-
-
Method Detail
-
getAppId
public static java.lang.String getAppId(javax.servlet.http.HttpServletRequest httpServletRequest)
Returns the mobile app identifier present in request headers ornull
if there's no such information.- Parameters:
httpServletRequest
- the request.- Returns:
- the mobile app identifier present in request headers or
null
if there's no such information. - Since:
- 10.0.0
-
getAppVersion
public static java.lang.String getAppVersion(javax.servlet.http.HttpServletRequest httpServletRequest)
Returns the mobile app version present in request headers ornull
if there's no such information.- Parameters:
httpServletRequest
- the request.- Returns:
- the mobile app version present in request headers or
null
if there's no such information. - Since:
- 10.0.0
-
getGCMProjectId
public static java.lang.String getGCMProjectId() throws PortalException
Returns the currently configured GCM project id.- Returns:
- the currently configured GCM project id.
- Throws:
PortalException
- Since:
- 10.0.0
-
-