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 TRTrackerServerListener2
TRTrackerServerListener2.ExternalRequest -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<TrackerAuthenticationListener> protected TRTrackerServerFields inherited from class 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 TypeMethodDescriptionvoidbooleanauthenticate(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 availablevoiddestroy()getName()URL[]getURLs()returns the context URLS (can be two for the tracker as http + https)voidvoidsetEnableKeepAlive(boolean enable) Methods inherited from class TrackerWCHelper
addPageGenerator, getPageGenerators, handleExternalRequest, removePageGenerator, setTrackerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TRTrackerServerListener2
handleExternalRequest
-
Field Details
-
properties
-
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:
getNamein interfaceTrackerWebContext
-
setEnableKeepAlive
public void setEnableKeepAlive(boolean enable) - Specified by:
setEnableKeepAlivein interfaceTrackerWebContext
-
getURLs
Description copied from interface:TrackerWebContextreturns the context URLS (can be two for the tracker as http + https)- Specified by:
getURLsin interfaceTrackerWebContext- Returns:
-
getBindIP
- Specified by:
getBindIPin interfaceTrackerWebContext
-
getProperties
- Specified by:
getPropertiesin interfaceTrackerWebContext
-
authenticate
Description copied from interface:TRTrackerServerAuthenticationListenerchecks the password against user and returns true if OK- Specified by:
authenticatein interfaceTRHostAuthenticationListener- Specified by:
authenticatein interfaceTRTrackerServerAuthenticationListener- Parameters:
resource-user-password-- Returns:
-
authenticate
Description copied from interface:TRTrackerServerAuthenticationListenerreturns SHA1 hash of pw for user if available- Specified by:
authenticatein interfaceTRHostAuthenticationListener- Specified by:
authenticatein interfaceTRTrackerServerAuthenticationListener- Parameters:
resource-user-- Returns:
-
addAuthenticationListener
- Specified by:
addAuthenticationListenerin interfaceTrackerWebContext
-
removeAuthenticationListener
- Specified by:
removeAuthenticationListenerin interfaceTrackerWebContext
-
destroy
public void destroy()- Specified by:
destroyin interfaceTrackerWebContext- Overrides:
destroyin classTrackerWCHelper
-