From 36cd5cfc5c727e4408758ef78e5b05a15ca027c9 Mon Sep 17 00:00:00 2001 From: kak Date: Wed, 22 May 2019 15:22:18 -0700 Subject: [PATCH] Add MediaType for "application/geo+json". via https://github.com/google/guava/pull/3243 RELNOTES=Add MediaType for "application/geo+json". ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=249531547 --- android/guava/src/com/google/common/net/MediaType.java | 8 ++++++++ guava/src/com/google/common/net/MediaType.java | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/android/guava/src/com/google/common/net/MediaType.java b/android/guava/src/com/google/common/net/MediaType.java index 9c5881cebdb7..211258a69e24 100644 --- a/android/guava/src/com/google/common/net/MediaType.java +++ b/android/guava/src/com/google/common/net/MediaType.java @@ -426,6 +426,14 @@ private static MediaType addKnownType(MediaType mediaType) { */ public static final MediaType APPLICATION_BINARY = createConstant(APPLICATION_TYPE, "binary"); + /** + * Media type for the GeoJSON Format, a + * geospatial data interchange format based on JSON. + * + * @since NEXT + */ + public static final MediaType GEO_JSON = createConstant(APPLICATION_TYPE, "geo+json"); + public static final MediaType GZIP = createConstant(APPLICATION_TYPE, "x-gzip"); /** diff --git a/guava/src/com/google/common/net/MediaType.java b/guava/src/com/google/common/net/MediaType.java index 9025980cd010..5636afa8dcef 100644 --- a/guava/src/com/google/common/net/MediaType.java +++ b/guava/src/com/google/common/net/MediaType.java @@ -426,6 +426,14 @@ private static MediaType addKnownType(MediaType mediaType) { */ public static final MediaType APPLICATION_BINARY = createConstant(APPLICATION_TYPE, "binary"); + /** + * Media type for the GeoJSON Format, a + * geospatial data interchange format based on JSON. + * + * @since NEXT + */ + public static final MediaType GEO_JSON = createConstant(APPLICATION_TYPE, "geo+json"); + public static final MediaType GZIP = createConstant(APPLICATION_TYPE, "x-gzip"); /**