Class DefaultAnalyticsApiClient
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.component.salesforce.internal.client.AbstractClientBase
org.apache.camel.component.salesforce.internal.client.DefaultAnalyticsApiClient
- All Implemented Interfaces:
AutoCloseable,AnalyticsApiClient,HttpClientHolder,SalesforceSession.SalesforceSessionListener,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
Default implementation of
AnalyticsApiClient.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.camel.component.salesforce.internal.client.AbstractClientBase
AbstractClientBase.ClientResponseCallbackNested classes/interfaces inherited from interface org.apache.camel.component.salesforce.internal.client.AnalyticsApiClient
AnalyticsApiClient.RecentReportsResponseCallback, AnalyticsApiClient.ReportDescriptionResponseCallback, AnalyticsApiClient.ReportInstanceListResponseCallback, AnalyticsApiClient.ReportInstanceResponseCallback, AnalyticsApiClient.ReportResultsResponseCallback -
Field Summary
Fields inherited from class org.apache.camel.component.salesforce.internal.client.AbstractClientBase
accessToken, APPLICATION_JSON_UTF8, APPLICATION_XML_UTF8, httpClient, instanceUrl, log, loginConfig, session, versionFields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
ConstructorsConstructorDescriptionDefaultAnalyticsApiClient(String version, SalesforceSession session, SalesforceHttpClient httpClient, SalesforceLoginConfig loginConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected SalesforceExceptioncreateRestException(org.eclipse.jetty.client.api.Response response, InputStream responseContent) protected voiddoHttpRequest(org.eclipse.jetty.client.api.Request request, AbstractClientBase.ClientResponseCallback callback) voidexecuteAsyncReport(String reportId, Boolean includeDetails, ReportMetadata reportMetadata, Map<String, List<String>> headers, AnalyticsApiClient.ReportInstanceResponseCallback callback) voidexecuteSyncReport(String reportId, Boolean includeDetails, ReportMetadata reportMetadata, Map<String, List<String>> headers, AnalyticsApiClient.ReportResultsResponseCallback callback) voidgetRecentReports(Map<String, List<String>> headers, AnalyticsApiClient.RecentReportsResponseCallback callback) voidgetReportDescription(String reportId, Map<String, List<String>> headers, AnalyticsApiClient.ReportDescriptionResponseCallback callback) voidgetReportInstances(String reportId, Map<String, List<String>> headers, AnalyticsApiClient.ReportInstanceListResponseCallback callback) voidgetReportResults(String reportId, String instanceId, Map<String, List<String>> headers, AnalyticsApiClient.ReportResultsResponseCallback callback) protected voidsetAccessToken(org.eclipse.jetty.client.api.Request request) Methods inherited from class org.apache.camel.component.salesforce.internal.client.AbstractClientBase
doStart, doStop, getHttpClient, getRequest, getRequest, onLogin, onLogout, setAccessToken, setInstanceUrlMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
DefaultAnalyticsApiClient
public DefaultAnalyticsApiClient(String version, SalesforceSession session, SalesforceHttpClient httpClient, SalesforceLoginConfig loginConfig) throws SalesforceException - Throws:
SalesforceException
-
-
Method Details
-
getRecentReports
public void getRecentReports(Map<String, List<String>> headers, AnalyticsApiClient.RecentReportsResponseCallback callback) - Specified by:
getRecentReportsin interfaceAnalyticsApiClient
-
getReportDescription
public void getReportDescription(String reportId, Map<String, List<String>> headers, AnalyticsApiClient.ReportDescriptionResponseCallback callback) - Specified by:
getReportDescriptionin interfaceAnalyticsApiClient
-
executeSyncReport
public void executeSyncReport(String reportId, Boolean includeDetails, ReportMetadata reportMetadata, Map<String, List<String>> headers, AnalyticsApiClient.ReportResultsResponseCallback callback) - Specified by:
executeSyncReportin interfaceAnalyticsApiClient
-
executeAsyncReport
public void executeAsyncReport(String reportId, Boolean includeDetails, ReportMetadata reportMetadata, Map<String, List<String>> headers, AnalyticsApiClient.ReportInstanceResponseCallback callback) - Specified by:
executeAsyncReportin interfaceAnalyticsApiClient
-
getReportInstances
public void getReportInstances(String reportId, Map<String, List<String>> headers, AnalyticsApiClient.ReportInstanceListResponseCallback callback) - Specified by:
getReportInstancesin interfaceAnalyticsApiClient
-
getReportResults
public void getReportResults(String reportId, String instanceId, Map<String, List<String>> headers, AnalyticsApiClient.ReportResultsResponseCallback callback) - Specified by:
getReportResultsin interfaceAnalyticsApiClient
-
setAccessToken
protected void setAccessToken(org.eclipse.jetty.client.api.Request request) - Specified by:
setAccessTokenin classAbstractClientBase
-
createRestException
protected SalesforceException createRestException(org.eclipse.jetty.client.api.Response response, InputStream responseContent) - Overrides:
createRestExceptionin classAbstractClientBase
-
doHttpRequest
protected void doHttpRequest(org.eclipse.jetty.client.api.Request request, AbstractClientBase.ClientResponseCallback callback) - Overrides:
doHttpRequestin classAbstractClientBase
-