Class WebsocketRouteBuilderDefault<R extends RequestContext<?>,W extends WebsocketContext<?>> 
- All Implemented Interfaces:
 WebsocketRouteBuilder<R,W> 
- 
Constructor Summary
ConstructorsConstructorDescriptionWebsocketRouteBuilderDefault(Router<R, W> router, WebsocketRouteFactory<R, W> websocketRouteFactory) WebsocketRouteBuilderDefault(WebsocketRouteFactory<R, W> websocketRouteFactory)  - 
Method Summary
Modifier and TypeMethodDescriptionAdds a before filter.A WebSocket route may have multiple "classes" to identify and group them.create(WebsocketController<R, W> websocketController) Creates and returns the WebSocket route without adding it to the router.getId()getPath()protected WebsocketRouteFactory<R,W> voidhandle(WebsocketController<R, W> websocketController) Saves the WebSocket route on the router.The WebSocket route id.booleanThe path that trigger the beginning of that HTTP to WebSocket connection.Skip a "before" filter for this WebSocket route ("after" filters are never run).This sould only by called by *plugins*. 
- 
Constructor Details
- 
WebsocketRouteBuilderDefault
 - 
WebsocketRouteBuilderDefault
 
 - 
 - 
Method Details
- 
getWebsocketRouteFactory
 - 
getRouter
 - 
getPath
 - 
getId
 - 
getClasses
 - 
isSpicastCoreRouteOrPluginRoute
public boolean isSpicastCoreRouteOrPluginRoute() - 
getBeforeFilterIdsToSkip
 - 
getWebsocketController
 - 
path
Description copied from interface:WebsocketRouteBuilderThe path that trigger the beginning of that HTTP to WebSocket connection.- Specified by:
 pathin interfaceWebsocketRouteBuilder<R extends RequestContext<?>,W extends WebsocketContext<?>> 
 - 
id
Description copied from interface:WebsocketRouteBuilderThe WebSocket route id.- Specified by:
 idin interfaceWebsocketRouteBuilder<R extends RequestContext<?>,W extends WebsocketContext<?>> 
 - 
classes
Description copied from interface:WebsocketRouteBuilderA WebSocket route may have multiple "classes" to identify and group them.For example, multiple routes may share the same "account" class and this information could be used to set a menu item as being active on an HTML page.
- Specified by:
 classesin interfaceWebsocketRouteBuilder<R extends RequestContext<?>,W extends WebsocketContext<?>> 
 - 
spicastCoreRouteOrPluginRoute
Description copied from interface:WebsocketRouteBuilderThis sould only by called by *plugins*.When this method is called, the resulting route won't be remove by default when the
Router.removeAllRoutes()method is used. TheRouter.removeAllRoutes(boolean)withtruewill have to be called to actually remove it.This is useful during development, when an hotreload mecanism is used to reload the Router without restarting the application, when the application routes changed. By default only the routes for which the
#isSpicastCoreRouteOrPluginRoute()method has been called would then be reloaded.- Specified by:
 spicastCoreRouteOrPluginRoutein interfaceWebsocketRouteBuilder<R extends RequestContext<?>,W extends WebsocketContext<?>> 
 - 
before
Description copied from interface:WebsocketRouteBuilderAdds a before filter. Those will be run before the WebSocket connection handshake is started.Note that there are no "after" filters because once a WebSocket connection is established, the HTTP one is no more.
- Specified by:
 beforein interfaceWebsocketRouteBuilder<R extends RequestContext<?>,W extends WebsocketContext<?>> 
 - 
getBeforeFilters
 - 
handle
Description copied from interface:WebsocketRouteBuilderSaves the WebSocket route on the router.- Specified by:
 handlein interfaceWebsocketRouteBuilder<R extends RequestContext<?>,W extends WebsocketContext<?>> 
 - 
create
Description copied from interface:WebsocketRouteBuilderCreates and returns the WebSocket route without adding it to the router. NOTE : usehandle(...)instead to save the route to the router at the end of the build process!- Specified by:
 createin interfaceWebsocketRouteBuilder<R extends RequestContext<?>,W extends WebsocketContext<?>> 
 - 
skip
Description copied from interface:WebsocketRouteBuilderSkip a "before" filter for this WebSocket route ("after" filters are never run).This is useful when you set a global filter but want to skip it one a specific route only.
- Specified by:
 skipin interfaceWebsocketRouteBuilder<R extends RequestContext<?>,W extends WebsocketContext<?>> 
 
 -