public interface CampaignProxy
Provides means to proxy requests to Adobe Campaign.
Should be used by servlet implementations that simply forward requests to Adobe Campaign and transfer the result of the request back to the client.
Modifier and Type | Method and Description |
---|---|
void |
get(java.lang.String remoteFunction,
java.util.Map<java.lang.String,java.lang.String> params,
CampaignCredentials credentials,
HttpServletResponse response)
Proxies a GET request to the specified Campaign method.
|
void |
get(java.lang.String remoteFunction,
java.util.Map<java.lang.String,java.lang.String> params,
Configuration config,
HttpServletResponse response)
Proxies a GET request to the specified Campaign method.
|
void |
get(java.lang.String remoteFunction,
java.util.Map<java.lang.String,java.lang.String> params,
Resource resource,
HttpServletResponse response)
Proxies a GET request to the specified Campaign method.
|
void |
getWithBasicAuth(java.lang.String url,
CampaignCredentials credentials,
HttpServletResponse response)
Proxies a GET request with Basic authentication to the specified Campaign
method.
|
void |
getWithBasicAuth(java.lang.String url,
Configuration config,
HttpServletResponse response)
Proxies a GET request with Basic authentication to the specified Campaign
method.
|
void |
getWithBasicAuth(java.lang.String url,
Resource resource,
HttpServletResponse response)
Proxies a GET request with Basic authentication to the specified Campaign
method.
|
void |
post(java.lang.String remoteFunction,
java.util.Map<java.lang.String,java.lang.String> postData,
CampaignCredentials credentials,
HttpServletResponse response)
Proxies a POST request to the specified Campaign method.
|
void |
post(java.lang.String remoteFunction,
java.util.Map<java.lang.String,java.lang.String> postData,
Configuration config,
HttpServletResponse response)
Proxies a POST request to the specified Campaign method.
|
void |
post(java.lang.String remoteFunction,
java.util.Map<java.lang.String,java.lang.String> postData,
Resource resource,
HttpServletResponse response)
Proxies a POST request to the specified Campaign method.
|
void get(java.lang.String remoteFunction, java.util.Map<java.lang.String,java.lang.String> params, CampaignCredentials credentials, HttpServletResponse response) throws CampaignException
Proxies a GET request to the specified Campaign method.
remoteFunction
- The remote function (including AC namespace + extension)params
- The URL parameterscredentials
- The credentials for accessing the Campaign instanceresponse
- The responseCampaignException
- if the request could not be proxiedvoid get(java.lang.String remoteFunction, java.util.Map<java.lang.String,java.lang.String> params, Resource resource, HttpServletResponse response) throws CampaignException
Proxies a GET request to the specified Campaign method.
remoteFunction
- The remote function (including AC namespace + extension)params
- The URL parametersresource
- The resource the request is addressing (for retrieving credentials
for accessing the Campaign instance)response
- The responseCampaignException
- if the request could not be proxiedvoid get(java.lang.String remoteFunction, java.util.Map<java.lang.String,java.lang.String> params, Configuration config, HttpServletResponse response) throws CampaignException
Proxies a GET request to the specified Campaign method.
remoteFunction
- The remote function (including AC namespace + extension)params
- The URL parametersconfig
- The cloud service configuration to be used (for retrieving credentials
for accessing the Campaign instance)response
- The responseCampaignException
- if the request could not be proxiedvoid post(java.lang.String remoteFunction, java.util.Map<java.lang.String,java.lang.String> postData, CampaignCredentials credentials, HttpServletResponse response) throws CampaignException
Proxies a POST request to the specified Campaign method.
remoteFunction
- The remote function (including AC namespace + extension)postData
- Post datacredentials
- The credentials for accessing the Campaign instanceresponse
- The responseCampaignException
- if the request could not be proxiedvoid post(java.lang.String remoteFunction, java.util.Map<java.lang.String,java.lang.String> postData, Resource resource, HttpServletResponse response) throws CampaignException
Proxies a POST request to the specified Campaign method.
remoteFunction
- The remote function (including AC namespace + extension)postData
- Post dataresource
- The resource the request is addressing (for retrieving credentials
for accessing the Campaign instance)response
- The responseCampaignException
- if the request could not be proxiedvoid post(java.lang.String remoteFunction, java.util.Map<java.lang.String,java.lang.String> postData, Configuration config, HttpServletResponse response) throws CampaignException
Proxies a POST request to the specified Campaign method.
remoteFunction
- The remote function (including AC namespace + extension)postData
- Post dataconfig
- The cloud service configuration to be used (for retrieving credentials
for accessing the Campaign instance)response
- The responseCampaignException
- if the request could not be proxiedvoid getWithBasicAuth(java.lang.String url, CampaignCredentials credentials, HttpServletResponse response) throws CampaignException
Proxies a GET request with Basic authentication to the specified Campaign method.
This is required for the query API in ".next style".
url
- The remote function (including AC namespace + extension)credentials
- The credentials for accessing the Campaign instanceresponse
- The responseCampaignException
- if the request could not be proxiedvoid getWithBasicAuth(java.lang.String url, Resource resource, HttpServletResponse response) throws CampaignException
Proxies a GET request with Basic authentication to the specified Campaign method.
This is required for the query API in ".next style".
url
- The remote function (including AC namespace + extension)resource
- The resource the request is addressing (for retrieving credentials
for accessing the Campaign instance)response
- The responseCampaignException
- if the request could not be proxiedvoid getWithBasicAuth(java.lang.String url, Configuration config, HttpServletResponse response) throws CampaignException
Proxies a GET request with Basic authentication to the specified Campaign method.
This is required for the query API in ".next style".
url
- The remote function (including AC namespace + extension)config
- The cloud service configuration to be used (for retrieving credentials
for accessing the Campaign instance)response
- The responseCampaignException
- if the request could not be proxiedCopyright © 2010 - 2020 Adobe. All Rights Reserved