Hi,

This is primarily a spec. change to the new HttpURLPermission class.

The main changes are:

1. Rename java.net.HttpURLPermission to java.net.URLPermission.

Even though the class is clearly intended for use with Http/s URLs it isn't restricted
to those URL schemes.

2. Add some of the capabilities from SocketPermission to this class too, namely:
    - support for wildcards eg "*.foo.com"
    - support for port ranges eg "4000-5000", or "5000-"

There are a couple of other minor changes, such as switching to use
the limited doPrivileged() API.

Webrev at: http://cr.openjdk.java.net/~michaelm/8014719/01/webrev/

Thanks,
Michael.

Reply via email to