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 voidcompileRoute(Route route)Configure the container for the websocket route.booleanisEnabled()If WebSocket support is detected and enabled by the underlying container.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Description copied from interface:WebSocketsIf WebSocket support is detected and enabled by the underlying container. If true then any websocket routes should successfully configure.- Specified by:
isEnabledin interfaceWebSockets- Returns:
- True or false if websockets are available.
-
compileRoute
public void compileRoute(Route route)
Description copied from interface:WebSocketsConfigure the container for the websocket route.- Specified by:
compileRoutein interfaceWebSockets- Parameters:
route- The websocket route
-
-