|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.net.DyndnsTool
public class DyndnsTool
makes it easy to use dyndns services (see http://www.dyndns.com/developers/specs/)
| Constructor Summary | |
|---|---|
DyndnsTool(String user,
char[] password)
|
|
DyndnsTool(String user,
String pwd)
|
|
| Method Summary | |
|---|---|
static String |
checkIpAddress()
obtains the current external ip address through the public web-site from dyndns.com. |
String[] |
getSites()
|
String |
getUser()
|
void |
setSites(String... sites)
each site is the full hostname as in 'antelmann.dyndns.org' |
int |
updateIP()
uses default parameters |
int |
updateIP(String myIpAddress,
String... mySites)
allows to update the ip address |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DyndnsTool(String user,
String pwd)
public DyndnsTool(String user,
char[] password)
| Method Detail |
|---|
public String getUser()
public String[] getSites()
public void setSites(String... sites)
public int updateIP()
throws IOException
IOExceptiongetSites(),
checkIpAddress()
public int updateIP(String myIpAddress,
String... mySites)
throws IOException,
IllegalArgumentException,
NullPointerException
myIpAddress - the ip address that should be used for forwardingmySites - the sites that are to be forwarded to the given ip address;
if no site is given, the sites of this instance are used (see getSites());
if these are not properly set either, an IllegalArgumentException is thrown
IOException
IllegalArgumentException
NullPointerException
public static String checkIpAddress()
throws IOException,
IllegalStateException
IOException
IllegalStateException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||