FileDocCategorySizeDatePackage
ExternalIPCheckerServiceSimple.javaAPI DocAzureus 3.0.3.41666Wed Nov 19 01:25:00 GMT 2003org.gudy.azureus2.core3.ipchecker.extipchecker.impl

ExternalIPCheckerServiceSimple

public class ExternalIPCheckerServiceSimple extends ExternalIPCheckerServiceImpl
author
parg

Fields Summary
protected String
url
Constructors Summary
protected ExternalIPCheckerServiceSimple(String _key, String _url)

		super( _key );
		
		url		= _url;
	
Methods Summary
public voidinitiateCheck(long timeout)

		super.initiateCheck( timeout );
	
protected voidinitiateCheckSupport()

		reportProgress( "loadingwebpage", url );
		
		String	page = loadPage( url );

		if ( page != null ){
		
			reportProgress( "analysingresponse" );		
				
			String	IP = extractIPAddress( page );
			
			if ( IP != null ){	
		
				reportProgress( "addressextracted", IP );
		
				informSuccess( IP );
			}
		}
	
public booleansupportsCheck()

		return( true  );