From 1acf86c4377d5e7136134d562e71d6a7e54c045f Mon Sep 17 00:00:00 2001 From: wentch <22250530@qq.com> Date: Mon, 18 Jan 2016 18:18:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9net?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/org/redkale/net/http/HttpRequest.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/org/redkale/net/http/HttpRequest.java b/src/org/redkale/net/http/HttpRequest.java index 89f52bc3c..7f6e4c29e 100644 --- a/src/org/redkale/net/http/HttpRequest.java +++ b/src/org/redkale/net/http/HttpRequest.java @@ -441,18 +441,6 @@ public class HttpRequest extends Request { return host; } - protected InetSocketAddress parseSocketAddress(String host) { - if (host == null || host.isEmpty()) return null; - int pos = host.indexOf(':'); - String hostname = pos < 0 ? host : host.substring(0, pos); - int port = pos < 0 ? 80 : Integer.parseInt(host.substring(pos + 1)); - return new InetSocketAddress(hostname, port); - } - - protected InetSocketAddress getHostSocketAddress() { - return parseSocketAddress(host); - } - /** * 截取getRequestURI最后的一个/后面的部分 *