hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [33/50] [abbrv] httpcomponents-core git commit: HTTPCORE-458: Validate port values. Javadoc.
Date Tue, 09 May 2017 19:58:25 GMT
HTTPCORE-458: Validate port values. Javadoc.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk@1792682 13f79535-47bb-0310-9956-ffa450edef68


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

Branch: refs/heads/trunk
Commit: 0ee0338dc091022ce59a33fd5242f250f1436450
Parents: 874ada9
Author: Gary D. Gregory <ggregory@apache.org>
Authored: Tue Apr 25 23:12:31 2017 +0000
Committer: Gary D. Gregory <ggregory@apache.org>
Committed: Tue Apr 25 23:12:31 2017 +0000

----------------------------------------------------------------------
 .../main/java/org/apache/hc/core5/http/HttpHost.java    | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/0ee0338d/httpcore5/src/main/java/org/apache/hc/core5/http/HttpHost.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/HttpHost.java b/httpcore5/src/main/java/org/apache/hc/core5/http/HttpHost.java
index 94d37c7..93cc8fc 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/HttpHost.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/HttpHost.java
@@ -179,6 +179,9 @@ public final class HttpHost implements NamedEndpoint, Serializable {
      *                  {@code null} indicates the
      *                  {@link #DEFAULT_SCHEME_NAME default scheme}
      *
+     * @throws IllegalArgumentException
+     *             If the port parameter is outside the specified range of valid port values,
which is between 0 and
+     *             65535, inclusive. {@code -1} indicates the scheme default port.
      * @since 4.3
      */
     public HttpHost(final InetAddress address, final int port, final String scheme) {
@@ -196,6 +199,9 @@ public final class HttpHost implements NamedEndpoint, Serializable {
      *                  {@code null} indicates the
      *                  {@link #DEFAULT_SCHEME_NAME default scheme}
      *
+     * @throws IllegalArgumentException
+     *             If the port parameter is outside the specified range of valid port values,
which is between 0 and
+     *             65535, inclusive. {@code -1} indicates the scheme default port.
      * @since 4.4
      */
     public HttpHost(final InetAddress address, final String hostname, final int port, final
String scheme) {
@@ -219,6 +225,9 @@ public final class HttpHost implements NamedEndpoint, Serializable {
      * @param port      the port number.
      *                  {@code -1} indicates the scheme default port.
      *
+     * @throws IllegalArgumentException
+     *             If the port parameter is outside the specified range of valid port values,
which is between 0 and
+     *             65535, inclusive. {@code -1} indicates the scheme default port.
      * @since 4.3
      */
     public HttpHost(final InetAddress address, final int port) {
@@ -231,6 +240,9 @@ public final class HttpHost implements NamedEndpoint, Serializable {
      *
      * @param address   the inet address.
      *
+     * @throws IllegalArgumentException
+     *             If the port parameter is outside the specified range of valid port values,
which is between 0 and
+     *             65535, inclusive. {@code -1} indicates the scheme default port.
      * @since 4.3
      */
     public HttpHost(final InetAddress address) {


Mime
View raw message