com.aelitis.azureus.util
Class LocalResourceHTTPServer

java.lang.Object
  extended by com.aelitis.azureus.util.LocalResourceHTTPServer
All Implemented Interfaces:
TrackerWebPageGenerator

public class LocalResourceHTTPServer
extends java.lang.Object
implements TrackerWebPageGenerator


Constructor Summary
LocalResourceHTTPServer(PluginInterface _plugin_interface, LoggerChannel _logger)
           
 
Method Summary
 boolean generate(TrackerWebPageRequest request, TrackerWebPageResponse response)
           
 java.net.URL publishResource(java.io.File resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalResourceHTTPServer

public LocalResourceHTTPServer(PluginInterface _plugin_interface,
                               LoggerChannel _logger)
                        throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

generate

public boolean generate(TrackerWebPageRequest request,
                        TrackerWebPageResponse response)
                 throws java.io.IOException
Specified by:
generate in interface TrackerWebPageGenerator
Returns:
true if the request was handled
Throws:
java.io.IOException

publishResource

public java.net.URL publishResource(java.io.File resource)
                             throws java.lang.Exception
Throws:
java.lang.Exception