[kaffe] CVS kaffe (robilad): Resynced with GNU classpath: https
handler
Kaffe CVS
cvs-commits at kaffe.org
Wed Mar 9 04:17:04 PST 2005
PatchSet 5508
Date: 2005/03/09 12:10:13
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Resynced with GNU classpath: https handler
2005-03-09 Dalibor Topic <robilad at kaffe.org>
Resynced with GNU Classpath.
2005-03-07 Chris Burdess <dog at gnu.org>
* gnu/java/net/protocol/https/Handler.java: New file.
Members:
ChangeLog:1.3682->1.3683
libraries/javalib/Makefile.am:1.321->1.322
libraries/javalib/Makefile.in:1.407->1.408
libraries/javalib/all.files:1.101->1.102
libraries/javalib/gnu/java/net/protocol/https/Handler.java:INITIAL->1.1
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3682 kaffe/ChangeLog:1.3683
--- kaffe/ChangeLog:1.3682 Wed Mar 9 11:47:00 2005
+++ kaffe/ChangeLog Wed Mar 9 12:10:13 2005
@@ -2,6 +2,14 @@
Resynced with GNU Classpath.
+ 2005-03-07 Chris Burdess <dog at gnu.org>
+
+ * gnu/java/net/protocol/https/Handler.java: New file.
+
+2005-03-09 Dalibor Topic <robilad at kaffe.org>
+
+ Resynced with GNU Classpath.
+
2005-03-07 Jeroen Frijters <jeroen at frijters.net>
* java/net/URI.java (AUTHORITY_REGEXP): Corrected regexp.
Index: kaffe/libraries/javalib/Makefile.am
diff -u kaffe/libraries/javalib/Makefile.am:1.321 kaffe/libraries/javalib/Makefile.am:1.322
--- kaffe/libraries/javalib/Makefile.am:1.321 Tue Mar 8 22:40:37 2005
+++ kaffe/libraries/javalib/Makefile.am Wed Mar 9 12:10:17 2005
@@ -134,6 +134,7 @@
$(gnu_java_net_protocol_ftp_SRCS) \
$(gnu_java_net_protocol_http_SRCS) \
$(gnu_java_net_protocol_http_event_SRCS) \
+ $(gnu_java_net_protocol_https_SRCS) \
$(gnu_java_net_protocol_jar_SRCS) \
$(gnu_java_nio_SRCS) \
$(gnu_java_nio_channels_SRCS) \
@@ -1508,6 +1509,8 @@
gnu/java/net/protocol/http/event/ConnectionListener.java \
gnu/java/net/protocol/http/event/RequestEvent.java \
gnu/java/net/protocol/http/event/RequestListener.java
+gnu_java_net_protocol_https_SRCS = \
+ gnu/java/net/protocol/https/Handler.java
gnu_java_net_protocol_jar_SRCS = \
gnu/java/net/protocol/jar/Connection.java \
gnu/java/net/protocol/jar/Handler.java
Index: kaffe/libraries/javalib/Makefile.in
diff -u kaffe/libraries/javalib/Makefile.in:1.407 kaffe/libraries/javalib/Makefile.in:1.408
--- kaffe/libraries/javalib/Makefile.in:1.407 Tue Mar 8 22:40:39 2005
+++ kaffe/libraries/javalib/Makefile.in Wed Mar 9 12:10:18 2005
@@ -486,6 +486,7 @@
$(gnu_java_net_protocol_ftp_SRCS) \
$(gnu_java_net_protocol_http_SRCS) \
$(gnu_java_net_protocol_http_event_SRCS) \
+ $(gnu_java_net_protocol_https_SRCS) \
$(gnu_java_net_protocol_jar_SRCS) \
$(gnu_java_nio_SRCS) \
$(gnu_java_nio_channels_SRCS) \
@@ -1944,6 +1945,9 @@
gnu/java/net/protocol/http/event/ConnectionListener.java \
gnu/java/net/protocol/http/event/RequestEvent.java \
gnu/java/net/protocol/http/event/RequestListener.java
+
+gnu_java_net_protocol_https_SRCS = \
+ gnu/java/net/protocol/https/Handler.java
gnu_java_net_protocol_jar_SRCS = \
gnu/java/net/protocol/jar/Connection.java \
Index: kaffe/libraries/javalib/all.files
diff -u kaffe/libraries/javalib/all.files:1.101 kaffe/libraries/javalib/all.files:1.102
--- kaffe/libraries/javalib/all.files:1.101 Tue Mar 8 22:40:40 2005
+++ kaffe/libraries/javalib/all.files Wed Mar 9 12:10:19 2005
@@ -1089,6 +1089,7 @@
gnu/java/net/protocol/http/event/ConnectionListener.java
gnu/java/net/protocol/http/event/RequestEvent.java
gnu/java/net/protocol/http/event/RequestListener.java
+gnu/java/net/protocol/https/Handler.java
gnu/java/net/protocol/jar/Connection.java
gnu/java/net/protocol/jar/Handler.java
gnu/java/nio/ChannelInputStream.java
===================================================================
Checking out kaffe/libraries/javalib/gnu/java/net/protocol/https/Handler.java
RCS: /home/cvs/kaffe/kaffe/libraries/javalib/gnu/java/net/protocol/https/Handler.java,v
VERS: 1.1
***************
--- /dev/null Sun Aug 4 19:57:58 2002
+++ kaffe/libraries/javalib/gnu/java/net/protocol/https/Handler.java Wed Mar 9 12:17:04 2005
@@ -0,0 +1,76 @@
+/* Handler.java --
+ Copyright (C) 2004 Free Software Foundation, Inc.
+
+This file is part of GNU Classpath.
+
+GNU Classpath is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU Classpath is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Classpath; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+02111-1307 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version. */
+
+
+package gnu.java.net.protocol.https;
+
+import java.io.IOException;
+import java.net.URL;
+import java.net.URLConnection;
+import java.net.URLStreamHandler;
+
+import gnu.java.net.protocol.http.HTTPConnection;
+import gnu.java.net.protocol.http.HTTPURLConnection;
+
+/**
+ * An HTTPS URL stream handler.
+ *
+ * @author Chris Burdess (dog at gnu.org)
+ */
+public class Handler
+ extends URLStreamHandler
+{
+
+ /**
+ * Returns the default HTTPS port (443).
+ */
+ protected int getDefaultPort()
+ {
+ return HTTPConnection.HTTPS_PORT;
+ }
+
+ /**
+ * Returns an HTTPURLConnection for the given URL.
+ */
+ public URLConnection openConnection(URL url)
+ throws IOException
+ {
+ return new HTTPURLConnection(url);
+ }
+
+}
+
More information about the kaffe
mailing list