Package overit.geocall.util.hyperlink
Class Server
java.lang.Object
overit.geocall.util.hyperlink.Server
Class used to manage the HTML Server
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the domaingetHost()Returns the hostgetIp()Returns the ipinthashCode()booleanReturns if the Server have a domainbooleanisIp()Returns if the server is ipprotected static booleanReturns if the string looks like an ipvoidSets the domainvoidSets the hostvoidSets the ipvoidSets the ServertoString()
-
Field Details
-
_host
-
_domain
-
_ip
-
-
Constructor Details
-
Server
Constructor of a Server- Parameters:
s- String representing the Server
-
-
Method Details
-
setServer
Sets the Server- Parameters:
s- String representing the Server
-
equals
-
hashCode
public int hashCode() -
isIp
public boolean isIp()Returns if the server is ip- Returns:
trueif is ip,falseotherwise
-
haveDomain
public boolean haveDomain()Returns if the Server have a domain- Returns:
trueif the Server have a domain,falseotherwise
-
looksIp
Returns if the string looks like an ip- Parameters:
s- The string to consider- Returns:
truethe string looks like an ip,falseotherwise
-
toString
-
setHost
Sets the host- Parameters:
h- The host to set
-
setDomain
Sets the domain- Parameters:
d- The domain to set
-
setIp
Sets the ip- Parameters:
ip- The ip to set
-
getHost
Returns the host- Returns:
- A string representing the host
-
getDomain
Returns the domain- Returns:
- A string representing the domain
-
getIp
Returns the ip- Returns:
- A string representing the ip
-