Package net.bluemind.lib.vertx
Class RouteMatcher
java.lang.Object
net.bluemind.lib.vertx.RouteMatcher
- All Implemented Interfaces:
io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest>
public class RouteMatcher
extends Object
implements io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
allWithRegEx
(String regex, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> h) void
void
void
handle
(io.vertx.core.http.HttpServerRequest fRequest) void
void
noMatch
(io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> h) void
void
void
void
regex
(io.vertx.core.http.HttpMethod m, String re, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> h) void
io.vertx.ext.web.handler.sockjs.SockJSHandler
websocket
(String prefix, io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions hOpts, io.vertx.core.Handler<io.vertx.ext.web.handler.sockjs.SockJSSocket> sock)
-
Constructor Details
-
RouteMatcher
public RouteMatcher(io.vertx.core.Vertx vx)
-
-
Method Details
-
regex
public void regex(io.vertx.core.http.HttpMethod m, String re, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> h) -
regex
-
post
-
get
-
allWithRegEx
public void allWithRegEx(String regex, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> h) -
handle
public void handle(io.vertx.core.http.HttpServerRequest fRequest) - Specified by:
handle
in interfaceio.vertx.core.Handler<io.vertx.core.http.HttpServerRequest>
-
noMatch
public void noMatch(io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> h) -
websocket
public io.vertx.ext.web.handler.sockjs.SockJSHandler websocket(String prefix, io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions hOpts, io.vertx.core.Handler<io.vertx.ext.web.handler.sockjs.SockJSSocket> sock) -
delete
public void delete(String path, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> handler) -
put
-
head
-
options
public void options(String path, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> handler)
-