org.gudy.azureus2.pluginsimpl.local.tracker
Class TrackerWebContextImpl
java.lang.Object
  
org.gudy.azureus2.pluginsimpl.local.tracker.TrackerWCHelper
      
org.gudy.azureus2.pluginsimpl.local.tracker.TrackerWebContextImpl
- All Implemented Interfaces: 
 - TRHostAuthenticationListener, TRTrackerServerAuthenticationListener, TRTrackerServerListener2, TrackerWebContext
 
public class TrackerWebContextImpl
- extends TrackerWCHelper
- implements TRTrackerServerListener2, TRTrackerServerAuthenticationListener
  
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
server
protected TRTrackerServer server
auth_listeners
protected List<TrackerAuthenticationListener> auth_listeners
TrackerWebContextImpl
public TrackerWebContextImpl(TrackerImpl _tracker,
                             String name,
                             int port,
                             int protocol,
                             InetAddress bind_ip)
                      throws TrackerException
- Throws:
 TrackerException
getName
public String getName()
- Specified by:
 getName in interface TrackerWebContext
 
 
setEnableKeepAlive
public void setEnableKeepAlive(boolean enable)
- Specified by:
 setEnableKeepAlive in interface TrackerWebContext
 
 
getURLs
public URL[] getURLs()
- Description copied from interface: 
TrackerWebContext 
- returns the context URLS (can be two for the tracker as http + https)
- Specified by:
 getURLs in interface TrackerWebContext
 
- Returns:
 
 
 
getBindIP
public InetAddress getBindIP()
- Specified by:
 getBindIP in interface TrackerWebContext
 
 
authenticate
public boolean authenticate(String headers,
                            URL resource,
                            String user,
                            String password)
- Description copied from interface: 
TRTrackerServerAuthenticationListener 
- checks the password against user and returns true if OK
- Specified by:
 authenticate in interface TRHostAuthenticationListener- Specified by:
 authenticate in interface TRTrackerServerAuthenticationListener
 
 
 
authenticate
public byte[] authenticate(URL resource,
                           String user)
- Description copied from interface: 
TRTrackerServerAuthenticationListener 
- returns SHA1 hash of pw for user if available
- Specified by:
 authenticate in interface TRHostAuthenticationListener- Specified by:
 authenticate in interface TRTrackerServerAuthenticationListener
 
 
 
addAuthenticationListener
public void addAuthenticationListener(TrackerAuthenticationListener l)
- Specified by:
 addAuthenticationListener in interface TrackerWebContext
 
 
removeAuthenticationListener
public void removeAuthenticationListener(TrackerAuthenticationListener l)
- Specified by:
 removeAuthenticationListener in interface TrackerWebContext
 
 
destroy
public void destroy()
- Specified by:
 destroy in interface TrackerWebContext- Overrides:
 destroy in class TrackerWCHelper