org.pasoa.processor
Class Dispatcher

java.lang.Object
  extended by org.pasoa.processor.Dispatcher
All Implemented Interfaces:
Runnable

public class Dispatcher
extends Object
implements Runnable

Author:
Paul Groth pg03r@ecs.soton.ac.uk

Constructor Summary
Dispatcher(StorageSystem ss, PlugInRegistry pir)
           
 
Method Summary
 int getNumberOfResponses()
           
 long getProcessCacheItemsWaitTime()
           
 Document getResponse()
           
 void processAndDispatch(InputStream is, OutputStream os, String context)
          Processes a SOAP message from the given input stream and dispatches the contents to the appropriate PlugIn specified by the context.
 void run()
           
 void setProcessCacheItemsWaitTime(long waitTime)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dispatcher

public Dispatcher(StorageSystem ss,
                  PlugInRegistry pir)
Method Detail

processAndDispatch

public void processAndDispatch(InputStream is,
                               OutputStream os,
                               String context)
                        throws Exception
Processes a SOAP message from the given input stream and dispatches the contents to the appropriate PlugIn specified by the context.

Parameters:
is -
Throws:
Exception

run

public void run()
Specified by:
run in interface Runnable

getResponse

public Document getResponse()

getNumberOfResponses

public int getNumberOfResponses()

shutdown

public void shutdown()
              throws Exception
Throws:
Exception

getProcessCacheItemsWaitTime

public long getProcessCacheItemsWaitTime()

setProcessCacheItemsWaitTime

public void setProcessCacheItemsWaitTime(long waitTime)