equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
24 */ |
24 */ |
25 |
25 |
26 package sun.misc; |
26 package sun.misc; |
27 |
27 |
28 import java.net.URLClassLoader; |
28 import java.net.URLClassLoader; |
|
29 import java.net.InetAddress; |
29 |
30 |
30 public interface JavaNetAccess { |
31 public interface JavaNetAccess { |
31 /** |
32 /** |
32 * return the URLClassPath belonging to the given loader |
33 * return the URLClassPath belonging to the given loader |
33 */ |
34 */ |
34 URLClassPath getURLClassPath (URLClassLoader u); |
35 URLClassPath getURLClassPath (URLClassLoader u); |
|
36 |
|
37 /** |
|
38 * Return the original application specified hostname of |
|
39 * the given InetAddress object. |
|
40 */ |
|
41 String getOriginalHostName(InetAddress ia); |
35 } |
42 } |