Package ninja.websockets
Class DefaultWebSockets
- java.lang.Object
-
- ninja.websockets.DefaultWebSockets
-
- All Implemented Interfaces:
WebSockets
public class DefaultWebSockets extends Object implements WebSockets
Default implementation of WebSockets (which is of course disabled).- Author:
- jjlauer
-
-
Constructor Summary
Constructors Constructor Description DefaultWebSockets()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compileRoute(Route route)
Configure the container for the websocket route.boolean
isEnabled()
If WebSocket support is detected and enabled by the underlying container.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Description copied from interface:WebSockets
If WebSocket support is detected and enabled by the underlying container. If true then any websocket routes should successfully configure.- Specified by:
isEnabled
in interfaceWebSockets
- Returns:
- True or false if websockets are available.
-
compileRoute
public void compileRoute(Route route)
Description copied from interface:WebSockets
Configure the container for the websocket route.- Specified by:
compileRoute
in interfaceWebSockets
- Parameters:
route
- The websocket route
-
-