net.sourceforge.guacamole.net.basic
Class WebSocketSupportLoader

java.lang.Object
  extended by net.sourceforge.guacamole.net.basic.WebSocketSupportLoader
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class WebSocketSupportLoader
extends Object
implements javax.servlet.ServletContextListener

Simple ServletContextListener which loads a WebSocket tunnel implementation if available, using the Servlet 3.0 API to dynamically load and install the tunnel servlet. Note that because Guacamole depends on the Servlet 2.5 API, and 3.0 may not be available or needed if WebSocket is not desired, the 3.0 API is detected and invoked dynamically via reflection.

Author:
Michael Jumper

Constructor Summary
WebSocketSupportLoader()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent sce)
           
 void contextInitialized(javax.servlet.ServletContextEvent sce)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSocketSupportLoader

public WebSocketSupportLoader()
Method Detail

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent sce)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent sce)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener


Copyright © 2013. All Rights Reserved.