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) boolean
private final StringSupplier
private final Vector
private static final int
private final String
private final AEMonitor
(package private) final AESemaphore
private final String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ExternalIPCheckerServiceImpl
(String serviceName, String serviceUrl, StringSupplier serviceDescription) -
Method Summary
Modifier and TypeMethodDescriptionprotected ExternalIPCheckerServiceImpl
_clone()
void
protected String
extractIPAddress
(String str) getName()
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
protected void
initiateCheckSupport
(long timeout) protected String
void
protected void
reportProgress
(String msg_key) protected void
reportProgress
(String msg_key, Object extra) protected void
protected static URL
Constructs an url without throwing checked exceptions.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.core.ipchecker.extipchecker.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:
initiateCheck
in interfaceExternalIPCheckerService
-
_clone
-
initiateCheckSupport
protected void initiateCheckSupport(long timeout) -
initiateCheckSupport
protected abstract void initiateCheckSupport() -
setComplete
protected void setComplete() -
loadPage
-
extractIPAddress
-
getName
- Specified by:
getName
in interfaceExternalIPCheckerService
-
getDescription
- Specified by:
getDescription
in interfaceExternalIPCheckerService
-
getURL
- Specified by:
getURL
in interfaceExternalIPCheckerService
-
informSuccess
-
informFailure
-
informFailure
-
reportProgress
-
reportProgress
-
addListener
- Specified by:
addListener
in interfaceExternalIPCheckerService
-
removeListener
- Specified by:
removeListener
in interfaceExternalIPCheckerService
-
url
Constructs an url without throwing checked exceptions.
-