public class IpAddressUtility extends Object
Constructor and Description |
---|
IpAddressUtility() |
Modifier and Type | Method and Description |
---|---|
static String |
modifyURL(String url,
boolean isClient)
Modifies URLs to absolute/unique URLs
if isClient
If an IPv4 address is present and it's one of my IPs, use the hostname
else it will attempt to resolve it
if !isClient
replace the server part with my hostname
in both cases, explicitly state the port number
|
public static final String logname
public static String modifyURL(String url, boolean isClient)
url
- isClient
- Copyright © 2008–2017 MIL-OSS. All rights reserved.