Package dev.relism.flash.routing
Class AbstractWsRouter
java.lang.Object
dev.relism.flash.routing.AbstractWsRouter
- Direct Known Subclasses:
FastPathWsRouterImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AbstractWsRouteraddRoute(HttpMethod method, String path, WebSocketHandler handler) voidcompile()Eagerly validates and compiles this WebSocket route graph before traffic is accepted.Creates a fresh per-connection scratch object forroute(dev.relism.flash.models.Request, java.lang.Object), ornullif this router keeps no reusable per-connection state — seeAbstractRouter.newScratch()for router.final AbstractWsRouterregister(HttpMethod method, String path, WebSocketHandler handler) abstract WebSocketHandlerprotected static voidsetPathParams(Request request, dev.relism.fpr.core.MatchResult<WebSocketHandler> result, String[] allNames, int methodLen)
-
Constructor Details
-
AbstractWsRouter
public AbstractWsRouter()
-
-
Method Details
-
compile
public void compile()Eagerly validates and compiles this WebSocket route graph before traffic is accepted. -
register
-
newScratch
Creates a fresh per-connection scratch object forroute(dev.relism.flash.models.Request, java.lang.Object), ornullif this router keeps no reusable per-connection state — seeAbstractRouter.newScratch()for router. -
route
-
addRoute
protected abstract AbstractWsRouter addRoute(HttpMethod method, String path, WebSocketHandler handler) -
setPathParams
protected static void setPathParams(Request request, dev.relism.fpr.core.MatchResult<WebSocketHandler> result, String[] allNames, int methodLen)
-