public class CAPIGatewayEndpoint extends Object implements CustomEndpointRequest
CustomEndpointRequest.Filter<Boolean>| Modifier and Type | Field and Description |
|---|---|
static okhttp3.MediaType |
JSON |
| Constructor and Description |
|---|
CAPIGatewayEndpoint(String endpointURL,
String accessKey) |
| Modifier and Type | Method and Description |
|---|---|
String |
getEndpoint() |
boolean |
isSendToEndpointOnly() |
CustomEndpointResponse |
sendEvent(APIContext context,
String pixelId,
List<Event> events) |
com.google.common.util.concurrent.ListenableFuture<CustomEndpointResponse> |
sendEventAsync(APIContext context,
String pixelId,
List<Event> data) |
void |
setFilter(CustomEndpointRequest.Filter filter) |
void |
setSendToEndpointOnly(boolean sendToEndpointOnly) |
void |
validateEndpoint(String url) |
public void validateEndpoint(String url) throws InvalidParameterException
InvalidParameterExceptionpublic boolean isSendToEndpointOnly()
isSendToEndpointOnly in interface CustomEndpointRequestpublic void setFilter(CustomEndpointRequest.Filter filter)
setFilter in interface CustomEndpointRequestpublic void setSendToEndpointOnly(boolean sendToEndpointOnly)
setSendToEndpointOnly in interface CustomEndpointRequestpublic String getEndpoint()
getEndpoint in interface CustomEndpointRequestpublic CustomEndpointResponse sendEvent(APIContext context, String pixelId, List<Event> events) throws APIException.FailedRequestException
sendEvent in interface CustomEndpointRequestAPIException.FailedRequestExceptionpublic com.google.common.util.concurrent.ListenableFuture<CustomEndpointResponse> sendEventAsync(APIContext context, String pixelId, List<Event> data)
sendEventAsync in interface CustomEndpointRequestCopyright © 2024. All rights reserved.