Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9B712200D15 for ; Thu, 5 Oct 2017 20:16:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9AB381609D2; Thu, 5 Oct 2017 18:16:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E906D1609E2 for ; Thu, 5 Oct 2017 20:16:52 +0200 (CEST) Received: (qmail 5905 invoked by uid 500); 5 Oct 2017 18:16:52 -0000 Mailing-List: contact commits-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list commits@hc.apache.org Received: (qmail 5887 invoked by uid 99); 5 Oct 2017 18:16:52 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Oct 2017 18:16:52 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 502BEE0395; Thu, 5 Oct 2017 18:16:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: olegk@apache.org To: commits@hc.apache.org Date: Thu, 05 Oct 2017 18:16:49 -0000 Message-Id: <4819675c6d1c41418d9c2675a8b03baf@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/3] httpcomponents-core git commit: [HTTPCORE-494] Add image constants to ContentType. archived-at: Thu, 05 Oct 2017 18:16:53 -0000 [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 Authored: Thu Oct 5 11:55:49 2017 -0600 Committer: Oleg Kalnichevski 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 + + 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,