Class ExternalIPCheckerServiceImpl
java.lang.Object
com.biglybt.core.ipchecker.extipchecker.impl.ExternalIPCheckerServiceImpl
- All Implemented Interfaces:
ExternalIPCheckerService, Cloneable
- Direct Known Subclasses:
ExternalIPCheckerServiceNoLookup, ExternalIPCheckerServiceSimple
public abstract class ExternalIPCheckerServiceImpl
extends Object
implements ExternalIPCheckerService, Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) booleanprivate final StringSupplierprivate final Vectorprivate static final intprivate final Stringprivate final AEMonitor(package private) final AESemaphoreprivate final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExternalIPCheckerServiceImpl(String serviceName, String serviceUrl, StringSupplier serviceDescription) -
Method Summary
Modifier and TypeMethodDescriptionprotected ExternalIPCheckerServiceImpl_clone()voidprotected StringextractIPAddress(String str) getName()getURL()protected voidinformFailure(String msg_key) protected voidinformFailure(String msg_key, String extra) protected voidinformSuccess(String ip) voidinitiateCheck(long timeout) protected abstract voidprotected voidinitiateCheckSupport(long timeout) protected Stringvoidprotected voidreportProgress(String msg_key) protected voidreportProgress(String msg_key, Object extra) protected voidprotected static URLConstructs an url without throwing checked exceptions.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ExternalIPCheckerService
supportsCheck
-
Field Details
-
MAX_PAGE_SIZE
private static final int MAX_PAGE_SIZE- See Also:
-
name
-
description
-
url
-
completed
boolean completed -
listeners
-
this_mon
-
timeout_sem
-
-
Constructor Details
-
ExternalIPCheckerServiceImpl
protected ExternalIPCheckerServiceImpl(String serviceName, String serviceUrl, StringSupplier serviceDescription)
-
-
Method Details
-
initiateCheck
public void initiateCheck(long timeout) - Specified by:
initiateCheckin interfaceExternalIPCheckerService
-
_clone
-
initiateCheckSupport
protected void initiateCheckSupport(long timeout) -
initiateCheckSupport
protected abstract void initiateCheckSupport() -
setComplete
protected void setComplete() -
loadPage
-
extractIPAddress
-
getName
- Specified by:
getNamein interfaceExternalIPCheckerService
-
getDescription
- Specified by:
getDescriptionin interfaceExternalIPCheckerService
-
getURL
- Specified by:
getURLin interfaceExternalIPCheckerService
-
informSuccess
-
informFailure
-
informFailure
-
reportProgress
-
reportProgress
-
addListener
- Specified by:
addListenerin interfaceExternalIPCheckerService
-
removeListener
- Specified by:
removeListenerin interfaceExternalIPCheckerService
-
url
-