/[classpath]/inetlib/source/gnu/inet/https/Handler.java
ViewVC logotype

Diff of /inetlib/source/gnu/inet/https/Handler.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dog, Thu Oct 21 15:21:55 2004 UTC revision 1.3 by dog, Thu Nov 25 22:15:05 2004 UTC
# Line 1  Line 1 
1  /*  /*
2   * $Id$   * Handler.java
3   * Copyright (C) 2004 The Free Software Foundation   * Copyright (C) 2004 The Free Software Foundation
4   *   *
5   * This file is part of GNU inetlib, a library.   * This file is part of GNU inetlib, a library.
# Line 50  import gnu.inet.http.HTTPURLConnection; Line 50  import gnu.inet.http.HTTPURLConnection;
50   * An HTTPS URL stream handler.   * An HTTPS URL stream handler.
51   *   *
52   * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>   * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>
  * @version $Revision$ $Date$  
53   */   */
54  public class Handler extends URLStreamHandler  public class Handler
55      extends URLStreamHandler
56  {  {
57    
58    protected int getDefaultPort ()    /**
59       * Returns the default HTTPS port (443).
60       */
61      protected int getDefaultPort()
62    {    {
63      return HTTPConnection.HTTPS_PORT;      return HTTPConnection.HTTPS_PORT;
64    }    }
65    
66    /**    /**
67     * Returns an FTPURLConnection for the given URL.     * Returns an HTTPURLConnection for the given URL.
68     */     */
69    public URLConnection openConnection (URL url)    public URLConnection openConnection(URL url)
70      throws IOException      throws IOException
71    {    {
72      return new HTTPURLConnection (url);      return new HTTPURLConnection(url);
73    }    }
74    
75  }  }
76    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26