You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2017/10/05 18:16:49 UTC
[2/3] httpcomponents-core git commit: [HTTPCORE-494] Add image
constants to ContentType.
[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/ac2a1764
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/ac2a1764
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/ac2a1764
Branch: refs/heads/4.4.x
Commit: ac2a1764a0846a9d24e9790ae39815b073eb4d46
Parents: c6dc387
Author: Gary Gregory <ga...@gmail.com>
Authored: Thu Oct 5 11:55:49 2017 -0600
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Thu Oct 5 20:15:05 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/ac2a1764/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/ac2a1764/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,