org.gudy.azureus2.core3.ipchecker.extipchecker.impl
Class ExternalIPCheckerServiceImpl

java.lang.Object
  extended by org.gudy.azureus2.core3.ipchecker.extipchecker.impl.ExternalIPCheckerServiceImpl
All Implemented Interfaces:
Cloneable, ExternalIPCheckerService
Direct Known Subclasses:
ExternalIPCheckerServiceNoLookup, ExternalIPCheckerServiceSimple

public abstract class ExternalIPCheckerServiceImpl
extends Object
implements ExternalIPCheckerService, Cloneable


Constructor Summary
protected ExternalIPCheckerServiceImpl(String name_key)
           
 
Method Summary
protected  ExternalIPCheckerServiceImpl _clone()
           
 void addListener(ExternalIPCheckerServiceListener l)
           
protected  String extractIPAddress(String str)
           
 String getDescription()
           
 String getName()
           
 String getURL()
           
protected  void informFailure(String msg_key)
           
protected  void informFailure(String msg_key, String extra)
           
protected  void informSuccess(String ip)
           
 void initiateCheck(long timeout)
           
protected abstract  void initiateCheckSupport()
           
protected  void initiateCheckSupport(long timeout)
           
protected  String loadPage(String url_string)
           
 void removeListener(ExternalIPCheckerServiceListener l)
           
protected  void reportProgress(String msg_key)
           
protected  void reportProgress(String msg_key, String extra)
           
protected  void setComplete()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gudy.azureus2.core3.ipchecker.extipchecker.ExternalIPCheckerService
supportsCheck
 

Constructor Detail

ExternalIPCheckerServiceImpl

protected ExternalIPCheckerServiceImpl(String name_key)
Method Detail

initiateCheck

public void initiateCheck(long timeout)
Specified by:
initiateCheck in interface ExternalIPCheckerService

_clone

protected ExternalIPCheckerServiceImpl _clone()

initiateCheckSupport

protected void initiateCheckSupport(long timeout)

initiateCheckSupport

protected abstract void initiateCheckSupport()

setComplete

protected void setComplete()

loadPage

protected String loadPage(String url_string)

extractIPAddress

protected String extractIPAddress(String str)

getName

public String getName()
Specified by:
getName in interface ExternalIPCheckerService

getDescription

public String getDescription()
Specified by:
getDescription in interface ExternalIPCheckerService

getURL

public String getURL()
Specified by:
getURL in interface ExternalIPCheckerService

informSuccess

protected void informSuccess(String ip)

informFailure

protected void informFailure(String msg_key)

informFailure

protected void informFailure(String msg_key,
                             String extra)

reportProgress

protected void reportProgress(String msg_key)

reportProgress

protected void reportProgress(String msg_key,
                              String extra)

addListener

public void addListener(ExternalIPCheckerServiceListener l)
Specified by:
addListener in interface ExternalIPCheckerService

removeListener

public void removeListener(ExternalIPCheckerServiceListener l)
Specified by:
removeListener in interface ExternalIPCheckerService