public class SimpleIPLocator extends Object
© Devmel SDK (java) ©
Constructor and Description |
---|
SimpleIPLocator()
Constructs a SimpleIPLocator object
|
SimpleIPLocator(SimpleIPLocator locator)
Constructs a SimpleIPLocator object as equal copy
|
SimpleIPLocator(String url)
Constructs a SimpleIPLocator object
|
Modifier and Type | Method and Description |
---|---|
void |
finalize() |
boolean |
getGateway()
Returns whether the gateway is sets or not.
|
String |
getIp()
Returns the IP address as String
|
boolean |
getLock()
Returns whether the lock is sets or not.
|
String |
getPassword()
Returns the password as String
|
int |
getProtocol()
Returns the protocol port
|
int |
getTimeout()
Returns the timeout
|
String |
getUrl()
Returns this object url
|
void |
setGateway(boolean enable)
Sets an IPv4 gateway to communicate through
|
void |
setIp(byte[] ip)
Sets the IP address
|
void |
setIp(String ip)
Sets the IP address
|
void |
setLock(boolean lockStatus)
Lock or Unlock to get exclusive access
|
void |
setPassword(byte[] password)
Sets the password
|
void |
setPassword(String password)
Sets the password
|
void |
setProtocol(int port)
Sets the protocol port
|
void |
setTimeout(int timeout)
Sets the timeout
|
void |
setUrl(String url)
Sets this object from an url
|
public SimpleIPLocator() throws UnsatisfiedLinkError
UnsatisfiedLinkError
- if native dependency not foundpublic SimpleIPLocator(SimpleIPLocator locator) throws UnsatisfiedLinkError
locator
- an original SimpleIPLocator to copyUnsatisfiedLinkError
- if native dependency not foundpublic SimpleIPLocator(String url) throws UnsatisfiedLinkError
url
- an url (sp://password@[IPAddress6]/?gw=1&timeout=3000&lock=0)UnsatisfiedLinkError
- if native dependency not foundpublic boolean getGateway()
public String getIp()
public boolean getLock()
public String getPassword()
public int getProtocol()
public int getTimeout()
public String getUrl()
public void setGateway(boolean enable)
enable
- true to enable, false otherwisepublic void setIp(byte[] ip)
ip
- an IP addresspublic void setIp(String ip)
ip
- an IP address as Stringpublic void setLock(boolean lockStatus)
lockStatus
- whether to lock or unlock thepublic void setPassword(byte[] password)
password
- a passwordpublic void setPassword(String password)
password
- a password as Stringpublic void setProtocol(int port)
port
- a port numberpublic void setTimeout(int timeout)
timeout
- Milliseconds timeoutpublic void setUrl(String url)
url
- an url string (sp://password@[IPAddress6]/?gw=1&timeout=3000&lock=0)