Class TrackerWebContextImpl
java.lang.Object
com.biglybt.pifimpl.local.tracker.TrackerWCHelper
com.biglybt.pifimpl.local.tracker.TrackerWebContextImpl
- All Implemented Interfaces:
TRHostAuthenticationListener
,TRTrackerServerAuthenticationListener
,TRTrackerServerListener2
,TrackerWebContext
public class TrackerWebContextImpl
extends TrackerWCHelper
implements TRTrackerServerListener2, TRTrackerServerAuthenticationListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.biglybt.core.tracker.server.TRTrackerServerListener2
TRTrackerServerListener2.ExternalRequest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<TrackerAuthenticationListener>
protected TRTrackerServer
Fields inherited from class com.biglybt.pifimpl.local.tracker.TrackerWCHelper
this_mon
-
Constructor Summary
ConstructorsConstructorDescriptionTrackerWebContextImpl
(TrackerImpl _tracker, String name, int port, int protocol, InetAddress bind_ip, Map<String, Object> properties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
authenticate
(String headers, URL resource, String user, String password) checks the password against user and returns true if OKbyte[]
authenticate
(URL resource, String user) returns SHA1 hash of pw for user if availablevoid
destroy()
getName()
URL[]
getURLs()
returns the context URLS (can be two for the tracker as http + https)void
void
setEnableKeepAlive
(boolean enable) Methods inherited from class com.biglybt.pifimpl.local.tracker.TrackerWCHelper
addPageGenerator, getPageGenerators, handleExternalRequest, removePageGenerator, setTracker
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.tracker.server.TRTrackerServerListener2
handleExternalRequest
-
Field Details
-
server
-
auth_listeners
-
-
Constructor Details
-
TrackerWebContextImpl
public TrackerWebContextImpl(TrackerImpl _tracker, String name, int port, int protocol, InetAddress bind_ip, Map<String, Object> properties) throws TrackerException- Throws:
TrackerException
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceTrackerWebContext
-
setEnableKeepAlive
public void setEnableKeepAlive(boolean enable) - Specified by:
setEnableKeepAlive
in interfaceTrackerWebContext
-
getURLs
Description copied from interface:TrackerWebContext
returns the context URLS (can be two for the tracker as http + https)- Specified by:
getURLs
in interfaceTrackerWebContext
- Returns:
-
getBindIP
- Specified by:
getBindIP
in interfaceTrackerWebContext
-
authenticate
Description copied from interface:TRTrackerServerAuthenticationListener
checks the password against user and returns true if OK- Specified by:
authenticate
in interfaceTRHostAuthenticationListener
- Specified by:
authenticate
in interfaceTRTrackerServerAuthenticationListener
-
authenticate
Description copied from interface:TRTrackerServerAuthenticationListener
returns SHA1 hash of pw for user if available- Specified by:
authenticate
in interfaceTRHostAuthenticationListener
- Specified by:
authenticate
in interfaceTRTrackerServerAuthenticationListener
-
addAuthenticationListener
- Specified by:
addAuthenticationListener
in interfaceTrackerWebContext
-
removeAuthenticationListener
- Specified by:
removeAuthenticationListener
in interfaceTrackerWebContext
-
destroy
public void destroy()- Specified by:
destroy
in interfaceTrackerWebContext
- Overrides:
destroy
in classTrackerWCHelper
-