hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [2/3] httpcomponents-core git commit: [HTTPCORE-494] Add image constants to ContentType.
Date Sun, 08 Oct 2017 09:10:02 GMT
[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/a42fd24b
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/a42fd24b
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/a42fd24b

Branch: refs/heads/4.4.x
Commit: a42fd24b8da58dc999d2c051776231c570a51341
Parents: f23c040
Author: Gary Gregory <garydgregory@gmail.com>
Authored: Thu Oct 5 11:55:49 2017 -0600
Committer: Oleg Kalnichevski <olegk@apache.org>
Committed: Sun Oct 8 11:03:27 2017 +0200

----------------------------------------------------------------------
 RELEASE_NOTES.txt                               | 14 ++++++++++++-
 .../org/apache/http/entity/ContentType.java     | 21 ++++++++++++++++++++
 2 files changed, 34 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/a42fd24b/RELEASE_NOTES.txt
----------------------------------------------------------------------
diff --git a/RELEASE_NOTES.txt b/RELEASE_NOTES.txt
index eb5f71f..db6d1a1 100644
--- a/RELEASE_NOTES.txt
+++ b/RELEASE_NOTES.txt
@@ -1,7 +1,19 @@
+Release 4.4.9
+-------------------
+
+This is a maintenance release that fixes a number of issues discovered since 4.4.8.
+
+Changelog
+-------------------
+
+* HTTPCORE-494: Add image constants to ContentType.
+  Contributed by Gary Gregory <ggregory at apache.org>
+
+
 Release 4.4.8
 -------------------
 
-This is a maintenance release that fixes a number of issues discovered since 4.4.6.
+This is a maintenance release that fixes a number of issues discovered since 4.4.7.
 
 Changelog
 -------------------

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/a42fd24b/httpcore/src/main/java/org/apache/http/entity/ContentType.java
----------------------------------------------------------------------
diff --git a/httpcore/src/main/java/org/apache/http/entity/ContentType.java b/httpcore/src/main/java/org/apache/http/entity/ContentType.java
index 4491e56..8398ddb 100644
--- a/httpcore/src/main/java/org/apache/http/entity/ContentType.java
+++ b/httpcore/src/main/java/org/apache/http/entity/ContentType.java
@@ -83,6 +83,20 @@ public final class ContentType implements Serializable {
             "application/xhtml+xml", Consts.ISO_8859_1);
     public static final ContentType APPLICATION_XML = create(
             "application/xml", Consts.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_SVG= create(
+            "image/svg+xml");
+    public static final ContentType IMAGE_TIFF = create(
+            "image/tiff");
+    public static final ContentType IMAGE_WEBP = create(
+            "image/webp");
     public static final ContentType MULTIPART_FORM_DATA = create(
             "multipart/form-data", Consts.ISO_8859_1);
     public static final ContentType TEXT_HTML = create(
@@ -105,6 +119,13 @@ public final class ContentType implements Serializable {
             APPLICATION_SVG_XML,
             APPLICATION_XHTML_XML,
             APPLICATION_XML,
+            IMAGE_BMP,
+            IMAGE_GIF,
+            IMAGE_JPEG,
+            IMAGE_PNG,
+            IMAGE_SVG,
+            IMAGE_TIFF,
+            IMAGE_WEBP,
             MULTIPART_FORM_DATA,
             TEXT_HTML,
             TEXT_PLAIN,


Mime
View raw message