Class HttpTrackerModule

  • All Implemented Interfaces:
    IModule

    public class HttpTrackerModule
    extends Object
    implements IModule
    A IModule to add support for HTTP trackers.
    • Constructor Detail

      • HttpTrackerModule

        public HttpTrackerModule()
    • Method Detail

      • getRelatedBep

        public int getRelatedBep()
        Description copied from interface: IModule
        Returns the number of the BEP to which this module is related. This is used to inform the user/developer for what extension this module is being used.
        Specified by:
        getRelatedBep in interface IModule
        Returns:
        The related BEP number
      • getDependsOn

        public List<Class<IModule>> getDependsOn()
        Description copied from interface: IModule
        Returns the extensions which must be present to allow this module to work at all.
        Specified by:
        getDependsOn in interface IModule
        Returns:
        The list of required modules
      • onPostHandshake

        public void onPostHandshake​(Peer peer)
                             throws IOException
        Description copied from interface: IModule
        Called when the peer has successfully passed the handshake with us.
        Specified by:
        onPostHandshake in interface IModule
        Parameters:
        peer - The peer who passed the handshake
        Throws:
        IOException
      • onShutdown

        public void onShutdown()
        Description copied from interface: IModule
        Event called when the TorrentClient is being shutdown.
        Specified by:
        onShutdown in interface IModule