Package org.apache.shenyu.common.utils
Class IpUtils
- java.lang.Object
-
- org.apache.shenyu.common.utils.IpUtils
-
public final class IpUtils extends java.lang.ObjectThe type Ip utils.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetHost()Gets host.static java.lang.StringgetHost(java.lang.String filterHost)Gets host.static booleanisCompleteHost(java.lang.String host)Judge whether host is complete.
-
-
-
Method Detail
-
getHost
public static java.lang.String getHost()
Gets host.- Returns:
- the host
-
getHost
public static java.lang.String getHost(java.lang.String filterHost)
Gets host.- Parameters:
filterHost- host filterHost str- Returns:
- the host
-
isCompleteHost
public static boolean isCompleteHost(java.lang.String host)
Judge whether host is complete.- Parameters:
host- host ip- Returns:
- boolean
-
-