public class GoogleAnalyticsDataPublisher extends Object
Constructor and Description |
---|
GoogleAnalyticsDataPublisher() |
Modifier and Type | Method and Description |
---|---|
static List<org.apache.http.NameValuePair> |
buildPayload(Object o)
Use this method to retireve a payload a list of NameValuePair.
|
static String |
buildPayloadString(Object o)
Use this method to retrieve a payload as string.
|
static boolean |
publishGET(String payload,
String userAgent,
boolean useSSL)
Use this method to publish using GET.
|
static boolean |
publishPOST(List<org.apache.http.NameValuePair> payload,
String userAgent,
boolean useSSL)
Use this method to publish using POST.
|
public static boolean publishPOST(List<org.apache.http.NameValuePair> payload, String userAgent, boolean useSSL)
payload
- - use the buildPayload method to retrieve NameValuePair to use as payload here.userAgent
- - set the userAgent - this can be overridden if userAgentOverride (ua) is set in payloaduseSSL
- - to publish using HTTPS, set this value to true.public static boolean publishGET(String payload, String userAgent, boolean useSSL)
payload
- - use the buildPayloadString method to retrieve query param string to pass as payload here.userAgent
- - set the userAgent - this can be overridden by usinguseSSL
- - to publish using HTTPS, set this value to true.public static String buildPayloadString(Object o)
o
- a GoogleAnalyticsData objectCopyright © 2022 WSO2. All rights reserved.