jdk/src/java.base/share/classes/sun/misc/JavaNetAccess.java
changeset 31687 d6eb4f028c60
parent 25859 3317bb8137f4
child 31918 1f13aceb00d7
equal deleted inserted replaced
31685:6a6e995cf912 31687:d6eb4f028c60
     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 }