com.urbanairship.api.client.Request Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
The Urban Airship Java client library
/*
* Copyright (c) 2013-2016. Urban Airship and Contributors
*/
package com.urbanairship.api.client;
import org.apache.http.entity.ContentType;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Map;
/**
* The base interface for UrbanAirshipClient API requests
*/
public interface Request {
public final static String CONTENT_TYPE_TEXT_CSV = "text/csv";
public final static String CONTENT_TYPE_JSON = "application/json";
public final static String CONTENT_ENCODING_GZIP = "gzip";
public final static String UA_VERSION_JSON = "application/vnd.urbanairship+json; version=3";
public final static String UA_VERSION_CSV = "application/vnd.urbanairship+csv; version=3";
public static enum HttpMethod {
GET,
POST,
PUT,
DELETE,
}
HttpMethod getHttpMethod();
String getRequestBody();
ContentType getContentType();
Map getRequestHeaders();
URI getUri(URI baseUri) throws URISyntaxException;
ResponseParser getResponseParser();
boolean bearerTokenAuthRequired();
boolean canUseBearerTokenAuth();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy