|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
net.sf.jradius.server.JRadiusThread
net.sf.jradius.server.Listener
public abstract class Listener
The base abstract class of all Listeners
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected ListenerConfigurationItem |
config
|
protected ObjectQueue |
queue
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
Listener(ListenerConfigurationItem cfg)
|
|
| Method Summary | |
|---|---|
void |
doneWithRequest(ListenerRequest listenerRequest)
|
boolean |
isActive()
|
boolean |
isKeepAlive()
|
boolean |
isUsingSSL()
|
void |
listen()
Listen for one object and place it on the request queue |
void |
run()
The thread's run method repeatedly calls listen() |
void |
setActive(boolean active)
|
void |
setListenerConfigurationItem(ListenerConfigurationItem cfg)
Sets the listeners ConfigurationItem |
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 |
| Field Detail |
|---|
protected ObjectQueue queue
protected ListenerConfigurationItem config
| Constructor Detail |
|---|
public Listener(ListenerConfigurationItem cfg)
throws java.security.KeyStoreException,
java.security.NoSuchAlgorithmException,
java.security.cert.CertificateException,
java.security.UnrecoverableKeyException,
java.security.KeyManagementException,
java.io.IOException
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.security.UnrecoverableKeyException
java.security.KeyManagementException
java.io.IOException| Method Detail |
|---|
public void setRequestQueue(ObjectQueue q)
q - the RequestQueue;public void setListenerConfigurationItem(ListenerConfigurationItem cfg)
cfg - a configuration item
public void listen()
throws java.io.IOException
java.io.IOExceptionpublic boolean isActive()
public void setActive(boolean active)
public void doneWithRequest(ListenerRequest listenerRequest)
throws java.io.IOException
java.io.IOExceptionpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic boolean isUsingSSL()
public boolean isKeepAlive()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||