net.sf.jradius.server
Class Processor

java.lang.Object
  extended by java.lang.Thread
      extended by net.sf.jradius.server.JRadiusThread
          extended by net.sf.jradius.server.Processor
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
OTPProxyProcessor, RadiusProcessor, WebServiceProcessor

public abstract class Processor
extends JRadiusThread

Base abstract class of all Processors

Author:
Gert Jan Verhoog, David Bird

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Processor()
           
 
Method Summary
 EventDispatcher getEventDispatcher()
           
 java.util.Collection getRequestHandlers()
           
 ObjectQueue getRequestQueue()
           
 void process()
           
protected abstract  void processRequest(ListenerRequest listenerRequest)
           
 void run()
           
 void setEventDispatcher(EventDispatcher eventDispatcher)
           
 void setRequestHandlers(java.util.Collection handlers)
           
 void setRequestQueue(ObjectQueue q)
          Sets the request queue for this listener
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Processor

public Processor()
Method Detail

setRequestQueue

public void setRequestQueue(ObjectQueue q)
Sets the request queue for this listener

Parameters:
q - the RequestQueue;

getRequestQueue

public ObjectQueue getRequestQueue()

getEventDispatcher

public EventDispatcher getEventDispatcher()

setEventDispatcher

public void setEventDispatcher(EventDispatcher eventDispatcher)

setRequestHandlers

public void setRequestHandlers(java.util.Collection handlers)

getRequestHandlers

public java.util.Collection getRequestHandlers()

processRequest

protected abstract void processRequest(ListenerRequest listenerRequest)
                                throws java.io.IOException,
                                       RadiusException
Throws:
java.io.IOException
RadiusException

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

process

public void process()
             throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2006 The JRadius Project, All Rights Reserved.