public class CustomEventRequest extends java.lang.Object implements Request<CustomEventResponse>
Request.HttpMethod
CONTENT_ENCODING_GZIP, CONTENT_TYPE_JSON, CONTENT_TYPE_TEXT_CSV, UA_VERSION_CSV, UA_VERSION_JSON
Constructor and Description |
---|
CustomEventRequest(java.util.List<CustomEventPayload> customEventPayloads) |
Modifier and Type | Method and Description |
---|---|
boolean |
bearerTokenAuthRequired() |
boolean |
canUseBearerTokenAuth() |
ContentType |
getContentType() |
Request.HttpMethod |
getHttpMethod() |
java.lang.String |
getRequestBody() |
java.util.Map<java.lang.String,java.lang.String> |
getRequestHeaders() |
ResponseParser<CustomEventResponse> |
getResponseParser() |
java.net.URI |
getUri(java.net.URI baseUri) |
static CustomEventRequest |
newRequest(CustomEventPayload customEventPayload) |
static CustomEventRequest |
newRequest(java.util.List<CustomEventPayload> customEventPayloads) |
public CustomEventRequest(java.util.List<CustomEventPayload> customEventPayloads)
public static CustomEventRequest newRequest(CustomEventPayload customEventPayload)
public static CustomEventRequest newRequest(java.util.List<CustomEventPayload> customEventPayloads)
public Request.HttpMethod getHttpMethod()
getHttpMethod
in interface Request<CustomEventResponse>
public java.lang.String getRequestBody()
getRequestBody
in interface Request<CustomEventResponse>
public ContentType getContentType()
getContentType
in interface Request<CustomEventResponse>
public java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
getRequestHeaders
in interface Request<CustomEventResponse>
public java.net.URI getUri(java.net.URI baseUri) throws java.net.URISyntaxException
getUri
in interface Request<CustomEventResponse>
java.net.URISyntaxException
public ResponseParser<CustomEventResponse> getResponseParser()
getResponseParser
in interface Request<CustomEventResponse>
public boolean bearerTokenAuthRequired()
bearerTokenAuthRequired
in interface Request<CustomEventResponse>
public boolean canUseBearerTokenAuth()
canUseBearerTokenAuth
in interface Request<CustomEventResponse>