OSDN Git Service

2003-10-08 Michael Koch <konqueror@gmx.de>
[pf3gnuchains/gcc-fork.git] / libjava / gnu / gcj / protocol / http / Handler.java
1 // Handler.java - URLStreamHandler for http protocol.
2
3 /* Copyright (C) 1999, 2003  Free Software Foundation
4
5    This file is part of libgcj.
6
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
9 details.  */
10
11 package gnu.gcj.protocol.http;
12
13 import java.net.URL;
14 import java.net.URLConnection;
15 import java.net.URLStreamHandler;
16 import java.io.IOException;
17
18 /**
19  * @author Warren Levy
20  * @author Anthony Green <green@redhat.com>
21  * @date March 26, 1999.
22  */
23
24 /**
25  * Written using on-line Java Platform 1.2 API Specification, as well
26  * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
27  * Status:  Minimal functionality.
28  */
29
30 public class Handler extends URLStreamHandler
31 {
32   protected URLConnection openConnection(URL url) throws IOException
33   {
34     return new Connection(url);
35   }
36
37   protected int getDefaultPort ()
38   {
39     return 80;
40   }
41 }