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.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
-
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)
-