com.aelitis.net.magneturi
Class MagnetURIHandler

java.lang.Object
  extended by com.aelitis.net.magneturi.MagnetURIHandler
Direct Known Subclasses:
MagnetURIHandlerImpl

public abstract class MagnetURIHandler
extends Object

Author:
parg

Nested Class Summary
static interface MagnetURIHandler.ResourceProvider
           
 
Constructor Summary
MagnetURIHandler()
           
 
Method Summary
abstract  void addInfo(String name, int info)
           
abstract  void addListener(MagnetURIHandlerListener l)
           
abstract  int getPort()
           
static MagnetURIHandler getSingleton()
           
abstract  void process(String get, InputStream is, OutputStream os)
           
abstract  URL registerResource(MagnetURIHandler.ResourceProvider provider)
           
abstract  void removeListener(MagnetURIHandlerListener l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MagnetURIHandler

public MagnetURIHandler()
Method Detail

getSingleton

public static MagnetURIHandler getSingleton()

getPort

public abstract int getPort()

process

public abstract void process(String get,
                             InputStream is,
                             OutputStream os)
                      throws IOException
Throws:
IOException

addListener

public abstract void addListener(MagnetURIHandlerListener l)

removeListener

public abstract void removeListener(MagnetURIHandlerListener l)

addInfo

public abstract void addInfo(String name,
                             int info)

registerResource

public abstract URL registerResource(MagnetURIHandler.ResourceProvider provider)