Home | History | Annotate | Download | only in net

Lines Matching refs:inetAddress

57  * InetAddress consists of an IP address and possibly its
127 * <p> The InetAddress class provides methods to resolve host names to
130 * <h4> InetAddress Caching </h4>
132 * The InetAddress class has a cache to store successful as well as
175 * @see java.net.InetAddress#getByAddress(byte[])
176 * @see java.net.InetAddress#getByAddress(java.lang.String, byte[])
177 * @see java.net.InetAddress#getAllByName(java.lang.String)
178 * @see java.net.InetAddress#getByName(java.lang.String)
179 * @see java.net.InetAddress#getLocalHost()
183 class InetAddress implements java.io.Serializable {
282 public InetAddress[] lookupAllHostAddr(String host, int netId)
320 * This creates an empty InetAddress, which is filled in by
321 * the accept() method. This InetAddress, however, is not
324 InetAddress() {
342 * Utility routine to check if the InetAddress is an
344 * @return a {@code boolean} indicating if the InetAddress is
353 * Utility routine to check if the InetAddress in a wildcard address.
354 * @return a {@code boolean} indicating if the Inetaddress is
363 * Utility routine to check if the InetAddress is a loopback address.
365 * @return a {@code boolean} indicating if the InetAddress is
374 * Utility routine to check if the InetAddress is an link local address.
376 * @return a {@code boolean} indicating if the InetAddress is
385 * Utility routine to check if the InetAddress is a site local address.
387 * @return a {@code boolean} indicating if the InetAddress is
542 * <p>If this InetAddress was created with a host name,
561 * @see InetAddress#getCanonicalHostName
567 holder().hostName = InetAddress.getHostFromNameService(this);
598 holder().hostName = InetAddress.getHostFromNameService(this, check);
629 canonicalHostName = InetAddress.getHostFromNameService(this);
653 private static String getHostFromNameService(InetAddress addr) {
664 InetAddress[] arr = nameService.lookupAllHostAddr(host, NETID_UNSET);
686 * Returns the raw IP address of this {@code InetAddress}
721 * Two instances of {@code InetAddress} represent the same IP
729 * @see java.net.InetAddress#getAddress()
761 static InetAddress[] unknown_array; // put THIS in cache
772 CacheEntry(InetAddress[] addresses, long expiration) {
777 InetAddress[] addresses;
812 public Cache put(String host, InetAddress[] addresses) {
889 unknown_array = new InetAddress[1];
902 InetAddress[] addresses,
919 private static InetAddress[] getCachedAddresses(String hostname) {
949 public InetAddress[] lookupAllHostAddr(String host)
1026 * Creates an InetAddress based on the provided host name and IP address.
1043 * @return an InetAddress object created from the raw IP address.
1047 public static InetAddress getByAddress(String host, byte[] addr) throws UnknownHostException {
1053 private static InetAddress getByAddress(String host, byte[] addr, int scopeId)
1091 * <p> If the host is {@code null} then an {@code InetAddress}
1105 public static InetAddress getByName(String host)
1126 * <p> If the host is {@code null} then an {@code InetAddress}
1150 public static InetAddress[] getAllByName(String host)
1160 * The InetAddress returned will represent the IPv4
1165 * @return the InetAddress loopback instance.
1168 public static InetAddress getLoopbackAddress() {
1205 private static InetAddress[] getAllByName0 (String host)
1214 static InetAddress[] getAllByName0 (String host, boolean check)
1219 private static InetAddress[] getAllByName0 (String host, InetAddress reqAddr, boolean check)
1223 /* Cache.get can return: null, unknownAddress, or InetAddress[] */
1235 InetAddress[] addresses = getCachedAddresses(host);
1248 private static InetAddress[] getAddressesFromNameService(String host, InetAddress reqAddr)
1251 InetAddress[] addresses = null;
1291 InetAddress[] local = new InetAddress[] { impl.loopbackAddress() };
1315 InetAddress tmp, tmp2 = reqAddr;
1341 private static InetAddress[] checkLookupTable(String host) {
1366 InetAddress[] addresses = getCachedAddresses(host);
1387 * Returns an {@code InetAddress} object given the raw IP address .
1398 * @return an InetAddress object created from the raw IP address.
1402 public static InetAddress getByAddress(byte[] addr)
1409 private static InetAddress cachedLocalHost = null;
1419 * an {@code InetAddress}.
1428 * If the operation is not allowed, an InetAddress representing
1437 * @see java.net.InetAddress#getByName(java.lang.String)
1439 public static InetAddress getLocalHost() throws UnknownHostException {
1454 InetAddress ret = null;
1467 InetAddress[] localAddrs;
1470 InetAddress.getAddressesFromNameService(local, null);
1503 * Returns the InetAddress representing anyLocalAddress
1506 static InetAddress anyLocalAddress() {
1612 * This copes with all forms of address that Java supports, detailed in the {@link InetAddress}
1618 InetAddress inetAddress = parseNumericAddressNoThrow(address);
1619 return inetAddress != null && disallowDeprecatedFormats(address, inetAddress) != null;
1622 static InetAddress parseNumericAddressNoThrow(String address) {
1629 InetAddress[] addresses = null;
1637 static InetAddress disallowDeprecatedFormats(String address, InetAddress inetAddress) {
1639 if (!(inetAddress instanceof Inet4Address) || address.indexOf(':') != -1) {
1640 return inetAddress;
1649 * Returns an InetAddress corresponding to the given numeric address (such
1656 public static InetAddress parseNumericAddress(String numericAddress) {
1660 InetAddress result = parseNumericAddressNoThrow(numericAddress);
1684 * @return the {@code InetAddress} instance representing the host.
1688 public static InetAddress getByNameOnNet(String host, int netId) throws UnknownHostException {
1702 public static InetAddress[] getAllByNameOnNet(String host, int netId) throws UnknownHostException {
1708 static InetAddress[] getAllByName0(String authHost, boolean check) throws UnknownHostException {
1724 return InetAddress.loadImpl(isIPv6Supported() ?