Class MobileAPIUtils


  • public class MobileAPIUtils
    extends Object
    Mobile API utilities.
    Since:
    10.0.0
    Version:
    $Revision: 19766 $ $Date: 2017-01-05 18:35:09 -0200 (Thu, 05 Jan 2017) $
    • Constructor Detail

      • MobileAPIUtils

        public MobileAPIUtils()
    • Method Detail

      • getAppId

        public static String getAppId​(HttpServletRequest httpServletRequest)
        Returns the mobile app identifier present in request headers or null 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 String getAppVersion​(HttpServletRequest httpServletRequest)
        Returns the mobile app version present in request headers or null 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 String getGCMProjectId()
                                      throws PortalException
        Returns the currently configured GCM project id.
        Returns:
        the currently configured GCM project id.
        Throws:
        PortalException
        Since:
        10.0.0