public class MobileBannerHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ANDROID_PACKAGE_PROPERTY |
static String |
ANDROID_PROTOCOL_SCHEME |
static String |
ITUNES_ID_PROPERTY |
static String |
ITUNES_URL |
static String |
PROTOCOL_PROPERTY |
Constructor and Description |
---|
MobileBannerHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getAndroidProtocol() |
static String |
getAppStoreURL()
Returns the URL of the iOS mobile application in the App Store.
|
protected static String |
getDocumentPart(DocumentModel doc) |
protected static String |
getDocumentPart(String requestedURL) |
static String |
getIOSProtocol() |
protected static String |
getServerPart(String baseURL) |
static String |
getURLForAndroidApplication(javax.servlet.http.HttpServletRequest request)
Returns a full URL opening the Android mobile application.
|
static String |
getURLForAndroidApplication(javax.servlet.http.HttpServletRequest request,
DocumentModel doc)
Returns a full URL opening the Android mobile application for the given document.
|
static String |
getURLForIOSApplication(javax.servlet.http.HttpServletRequest request)
Returns a full URL opening the iOS mobile application.
|
static String |
getURLForIOSApplication(javax.servlet.http.HttpServletRequest request,
DocumentModel doc)
Returns a full URL opening the iOS mobile application for the given document.
|
static String |
getURLForMobileApplication(String protocol,
javax.servlet.http.HttpServletRequest request,
DocumentModel doc) |
static String |
getURLForMobileApplication(String protocol,
String baseURL,
DocumentModel doc,
String requestedURL) |
public static final String PROTOCOL_PROPERTY
public static final String ANDROID_PACKAGE_PROPERTY
public static final String ITUNES_ID_PROPERTY
public static final String ANDROID_PROTOCOL_SCHEME
public static final String ITUNES_URL
public MobileBannerHelper()
public static String getURLForAndroidApplication(javax.servlet.http.HttpServletRequest request)
public static String getURLForAndroidApplication(javax.servlet.http.HttpServletRequest request, DocumentModel doc)
public static String getURLForIOSApplication(javax.servlet.http.HttpServletRequest request)
public static String getURLForIOSApplication(javax.servlet.http.HttpServletRequest request, DocumentModel doc)
public static String getAppStoreURL()
public static String getAndroidProtocol()
public static String getIOSProtocol()
public static String getURLForMobileApplication(String protocol, javax.servlet.http.HttpServletRequest request, DocumentModel doc)
public static String getURLForMobileApplication(String protocol, String baseURL, DocumentModel doc, String requestedURL)
protected static String getServerPart(String baseURL)
protected static String getDocumentPart(DocumentModel doc)
protected static String getDocumentPart(String requestedURL)
Copyright © 2017 Nuxeo. All rights reserved.