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 java.lang.Object

Author:
parg

Nested Class Summary
static interface MagnetURIHandler.ResourceProvider
           
 
Constructor Summary
MagnetURIHandler()
           
 
Method Summary
abstract  void addInfo(java.lang.String name, int info)
           
abstract  void addListener(MagnetURIHandlerListener l)
           
abstract  int getPort()
           
static MagnetURIHandler getSingleton()
           
abstract  void process(java.lang.String get, java.io.InputStream is, java.io.OutputStream os)
           
abstract  java.net.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(java.lang.String get,
                             java.io.InputStream is,
                             java.io.OutputStream os)
                      throws java.io.IOException
Throws:
java.io.IOException

addListener

public abstract void addListener(MagnetURIHandlerListener l)

removeListener

public abstract void removeListener(MagnetURIHandlerListener l)

addInfo

public abstract void addInfo(java.lang.String name,
                             int info)

registerResource

public abstract java.net.URL registerResource(MagnetURIHandler.ResourceProvider provider)