You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2018/10/26 17:57:17 UTC

httpcomponents-core git commit: Add accessor org.apache.hc.core5.http.URIScheme.getId()

Repository: httpcomponents-core
Updated Branches:
  refs/heads/master c93ea4082 -> ec5317c10


Add accessor org.apache.hc.core5.http.URIScheme.getId()

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

Branch: refs/heads/master
Commit: ec5317c10a9d039fffc494615bfc2a4cd947b8c9
Parents: c93ea40
Author: Gary Gregory <ga...@gmail.com>
Authored: Fri Oct 26 11:57:14 2018 -0600
Committer: Gary Gregory <ga...@gmail.com>
Committed: Fri Oct 26 11:57:14 2018 -0600

----------------------------------------------------------------------
 httpcore5/src/main/java/org/apache/hc/core5/http/URIScheme.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/ec5317c1/httpcore5/src/main/java/org/apache/hc/core5/http/URIScheme.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/URIScheme.java b/httpcore5/src/main/java/org/apache/hc/core5/http/URIScheme.java
index bed5655..58f73a7 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/URIScheme.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/URIScheme.java
@@ -44,6 +44,10 @@ public enum URIScheme {
         this.id = Args.notBlank(id, "Id");
     }
 
+    public String getId() {
+        return id;
+    }
+
     public boolean same(final String scheme) {
         return id.equalsIgnoreCase(scheme);
     }