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. |
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 |
|
|