public class DefaultRawClient extends AbstractClientBase implements RawClient
AbstractClientBase.ClientResponseCallbackRawClient.ResponseCallbackaccessToken, APPLICATION_JSON_UTF8, APPLICATION_XML_UTF8, httpClient, instanceUrl, log, loginConfig, session, version| Constructor and Description |
|---|
DefaultRawClient(SalesforceHttpClient httpClient,
String version,
SalesforceSession session,
SalesforceLoginConfig loginConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected SalesforceException |
createRestException(org.eclipse.jetty.client.api.Response response,
InputStream responseContent) |
void |
makeRequest(String method,
String path,
PayloadFormat format,
InputStream body,
Map<String,List<String>> headers,
RawClient.ResponseCallback callback)
Make a raw HTTP request to salesforce
|
protected void |
setAccessToken(org.eclipse.jetty.client.api.Request request) |
doHttpRequest, doStart, doStop, getHttpClient, getRequest, getRequest, onLogin, onLogout, setAccessToken, setInstanceUrlbuild, 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, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic DefaultRawClient(SalesforceHttpClient httpClient, String version, SalesforceSession session, SalesforceLoginConfig loginConfig) throws SalesforceException
SalesforceExceptionprotected void setAccessToken(org.eclipse.jetty.client.api.Request request)
setAccessToken in class AbstractClientBaseprotected SalesforceException createRestException(org.eclipse.jetty.client.api.Response response, InputStream responseContent)
createRestException in class AbstractClientBasepublic void makeRequest(String method, String path, PayloadFormat format, InputStream body, Map<String,List<String>> headers, RawClient.ResponseCallback callback)
makeRequest in interface RawClientmethod - HTTP method. "GET", "POST", etc.path - The path of the URL. Must begin with a "/"format - Encoding formatbody - Optional HTTP bodyheaders - HTTP headerscallback - Callback instance that will be invoked when the HTTP call returnsApache Camel