net.jradius.webservice
Class WebServiceListener

java.lang.Object
  extended by java.lang.Thread
      extended by net.jradius.server.JRadiusThread
          extended by net.jradius.server.TCPListener
              extended by net.jradius.webservice.WebServiceListener
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Runnable, net.jradius.server.Listener, net.sf.ehcache.event.CacheEventListener, org.springframework.beans.factory.InitializingBean

public class WebServiceListener
extends net.jradius.server.TCPListener
implements org.springframework.beans.factory.InitializingBean, net.sf.ehcache.event.CacheEventListener

JRadius TCP/SSL Proxy Listen

Author:
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 net.jradius.server.TCPListener
config, queue
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
WebServiceListener()
           
 
Method Summary
 void afterPropertiesSet()
           
 java.lang.Object clone()
           
 void dispose()
           
 WebServiceRequestObject get(java.lang.String username)
           
 net.sf.ehcache.CacheManager getCacheManager()
           
 java.lang.String getCacheName()
           
 java.lang.Integer getIdleTime()
           
 net.sf.ehcache.Ehcache getRequestCache()
           
 java.util.Map getRequestMap()
           
 java.lang.Integer getTimeToLive()
           
 void notifyElementEvicted(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element)
           
 void notifyElementExpired(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element)
           
 void notifyElementPut(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element)
           
 void notifyElementRemoved(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element)
           
 void notifyElementUpdated(net.sf.ehcache.Ehcache cache, net.sf.ehcache.Element element)
           
 void notifyRemoveAll(net.sf.ehcache.Ehcache cache)
           
 net.jradius.server.JRadiusEvent parseRequest(java.io.InputStream inputStream)
           
 void put(WebServiceRequestObject obj)
           
 void remove(OTPProxyRequest request)
           
 void setCacheManager(net.sf.ehcache.CacheManager cacheManager)
           
 void setCacheName(java.lang.String cacheName)
           
 void setIdleTime(java.lang.Integer idleTime)
           
 void setRequestCache(net.sf.ehcache.Ehcache requestCache)
           
 void setRequestMap(java.util.Map requestMap)
           
 void setTimeToLive(java.lang.Integer timeToLive)
           
 
Methods inherited from class net.jradius.server.TCPListener
deadKeepAliveListener, isActive, isKeepAlive, isUsingSSL, listen, run, setActive, setBacklog, setConfiguration, setConfiguration, setKeepAlive, setListenerConfigurationItem, setPort, setRequestQueue, setUsingSSL
 
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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.jradius.server.Listener
getName, start, stop
 

Constructor Detail

WebServiceListener

public WebServiceListener()
Method Detail

parseRequest

public net.jradius.server.JRadiusEvent parseRequest(java.io.InputStream inputStream)
                                             throws java.io.IOException,
                                                    WebServiceException
Specified by:
parseRequest in interface net.jradius.server.Listener
Specified by:
parseRequest in class net.jradius.server.TCPListener
Throws:
java.io.IOException
WebServiceException

remove

public void remove(OTPProxyRequest request)

put

public void put(WebServiceRequestObject obj)

get

public WebServiceRequestObject get(java.lang.String username)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface net.sf.ehcache.event.CacheEventListener
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

dispose

public void dispose()
Specified by:
dispose in interface net.sf.ehcache.event.CacheEventListener

notifyElementEvicted

public void notifyElementEvicted(net.sf.ehcache.Ehcache cache,
                                 net.sf.ehcache.Element element)
Specified by:
notifyElementEvicted in interface net.sf.ehcache.event.CacheEventListener

notifyElementExpired

public void notifyElementExpired(net.sf.ehcache.Ehcache cache,
                                 net.sf.ehcache.Element element)
Specified by:
notifyElementExpired in interface net.sf.ehcache.event.CacheEventListener

notifyElementPut

public void notifyElementPut(net.sf.ehcache.Ehcache cache,
                             net.sf.ehcache.Element element)
                      throws net.sf.ehcache.CacheException
Specified by:
notifyElementPut in interface net.sf.ehcache.event.CacheEventListener
Throws:
net.sf.ehcache.CacheException

notifyElementRemoved

public void notifyElementRemoved(net.sf.ehcache.Ehcache cache,
                                 net.sf.ehcache.Element element)
                          throws net.sf.ehcache.CacheException
Specified by:
notifyElementRemoved in interface net.sf.ehcache.event.CacheEventListener
Throws:
net.sf.ehcache.CacheException

notifyElementUpdated

public void notifyElementUpdated(net.sf.ehcache.Ehcache cache,
                                 net.sf.ehcache.Element element)
                          throws net.sf.ehcache.CacheException
Specified by:
notifyElementUpdated in interface net.sf.ehcache.event.CacheEventListener
Throws:
net.sf.ehcache.CacheException

notifyRemoveAll

public void notifyRemoveAll(net.sf.ehcache.Ehcache cache)
Specified by:
notifyRemoveAll in interface net.sf.ehcache.event.CacheEventListener

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

getCacheManager

public net.sf.ehcache.CacheManager getCacheManager()

setCacheManager

public void setCacheManager(net.sf.ehcache.CacheManager cacheManager)

getCacheName

public java.lang.String getCacheName()

setCacheName

public void setCacheName(java.lang.String cacheName)

getIdleTime

public java.lang.Integer getIdleTime()

setIdleTime

public void setIdleTime(java.lang.Integer idleTime)

getRequestCache

public net.sf.ehcache.Ehcache getRequestCache()

setRequestCache

public void setRequestCache(net.sf.ehcache.Ehcache requestCache)

getTimeToLive

public java.lang.Integer getTimeToLive()

setTimeToLive

public void setTimeToLive(java.lang.Integer timeToLive)

getRequestMap

public java.util.Map getRequestMap()

setRequestMap

public void setRequestMap(java.util.Map requestMap)


Copyright © 2008 JRadius Project, All Rights Reserved.