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: 19766 $ $Date: 2017-01-05 18:35:09 -0200 (Thu, 05 Jan 2017) $
-
-
Constructor Summary
Constructors Constructor Description MobileAPIUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getAppId(HttpServletRequest httpServletRequest)
Returns the mobile app identifier present in request headers ornull
if there's no such information.static java.lang.String
getAppVersion(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(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(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
-
-