hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject httpcomponents-core git commit: [HTTPCORE-494] Add image constants to ContentType.
Date Thu, 05 Oct 2017 17:48:55 GMT
Repository: httpcomponents-core
Updated Branches:
  refs/heads/master d8b464eaf -> 1c17e24cb


[HTTPCORE-494] Add image constants to ContentType.

Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/1c17e24c
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/1c17e24c
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/1c17e24c

Branch: refs/heads/master
Commit: 1c17e24cb4a9657d643b42d8c19905778cafe16d
Parents: d8b464e
Author: Gary Gregory <garydgregory@gmail.com>
Authored: Thu Oct 5 11:48:49 2017 -0600
Committer: Gary Gregory <garydgregory@gmail.com>
Committed: Thu Oct 5 11:48:49 2017 -0600

----------------------------------------------------------------------
 RELEASE_NOTES.txt                                    | 12 ++++++++++++
 .../java/org/apache/hc/core5/http/ContentType.java   | 15 +++++++++++++++
 2 files changed, 27 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/1c17e24c/RELEASE_NOTES.txt
----------------------------------------------------------------------
diff --git a/RELEASE_NOTES.txt b/RELEASE_NOTES.txt
index f93b2ca..96aeeaa 100644
--- a/RELEASE_NOTES.txt
+++ b/RELEASE_NOTES.txt
@@ -1,3 +1,15 @@
+Release 5.0-ALPHA5
+-------------------
+
+...TODO...
+
+Changelog
+-------------------
+
+* HTTPCORE-494: Add image constants to ContentType.
+  Contributed by Gary Gregory <ggregory at apache.org>
+
+
 Release 5.0-ALPHA4
 -------------------
 

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/1c17e24c/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java b/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java
index 527dba2..2638d58 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/ContentType.java
@@ -78,6 +78,16 @@ public final class ContentType implements Serializable {
             "application/xhtml+xml", StandardCharsets.ISO_8859_1);
     public static final ContentType APPLICATION_XML = create(
             "application/xml", StandardCharsets.ISO_8859_1);
+    public static final ContentType IMAGE_BMP = create(
+            "image/bmp");
+    public static final ContentType IMAGE_GIF= create(
+            "image/gif");
+    public static final ContentType IMAGE_JPEG = create(
+            "image/jpeg");
+    public static final ContentType IMAGE_PNG = create(
+            "image/png");
+    public static final ContentType IMAGE_WEBP = create(
+            "image/webp");
     public static final ContentType MULTIPART_FORM_DATA = create(
             "multipart/form-data", StandardCharsets.ISO_8859_1);
     public static final ContentType TEXT_HTML = create(
@@ -100,6 +110,11 @@ public final class ContentType implements Serializable {
             APPLICATION_SVG_XML,
             APPLICATION_XHTML_XML,
             APPLICATION_XML,
+            IMAGE_BMP,
+            IMAGE_GIF,
+            IMAGE_JPEG,
+            IMAGE_PNG,
+            IMAGE_WEBP,
             MULTIPART_FORM_DATA,
             TEXT_HTML,
             TEXT_PLAIN,


Mime
View raw message