Examples of Middleware


Examples of com.jetdrone.vertx.yoke.Middleware

     * Specify a middleware that will be called for a matching HTTP TRACE
     * @param pattern The simple pattern
     * @param handler The middleware to call
     */
    public Router trace(@NotNull final String pattern, @NotNull final Handler<YokeRequest> handler) {
        return trace(pattern, new Middleware() {
            @Override
            public void handle(@NotNull YokeRequest request, @NotNull Handler<Object> next) {
                handler.handle(request);
            }
        });
View Full Code Here

Examples of com.jetdrone.vertx.yoke.Middleware

     * Specify a middleware that will be called for a matching HTTP CONNECT
     * @param pattern The simple pattern
     * @param handler The middleware to call
     */
    public Router connect(@NotNull final String pattern, @NotNull final Handler<YokeRequest> handler) {
        return connect(pattern, new Middleware() {
            @Override
            public void handle(@NotNull YokeRequest request, @NotNull Handler<Object> next) {
                handler.handle(request);
            }
        });
View Full Code Here

Examples of com.jetdrone.vertx.yoke.Middleware

     * Specify a middleware that will be called for a matching HTTP PATCH
     * @param pattern The simple pattern
     * @param handler The middleware to call
     */
    public Router patch(@NotNull final String pattern, @NotNull final Handler<YokeRequest> handler) {
        return patch(pattern, new Middleware() {
            @Override
            public void handle(@NotNull YokeRequest request, @NotNull Handler<Object> next) {
                handler.handle(request);
            }
        });
View Full Code Here

Examples of com.jetdrone.vertx.yoke.Middleware

     * Specify a middleware that will be called for a matching HTTP GET
     * @param regex A regular expression
     * @param handler The middleware to call
     */
    public Router get(@NotNull final Pattern regex, @NotNull final Handler<YokeRequest> handler) {
        return get(regex, new Middleware() {
            @Override
            public void handle(@NotNull YokeRequest request, @NotNull Handler<Object> next) {
                handler.handle(request);
            }
        });
View Full Code Here

Examples of com.jetdrone.vertx.yoke.Middleware

     * Specify a middleware that will be called for a matching HTTP PUT
     * @param regex A regular expression
     * @param handler The middleware to call
     */
    public Router put(@NotNull final Pattern regex, @NotNull final Handler<YokeRequest> handler) {
        return put(regex, new Middleware() {
            @Override
            public void handle(@NotNull YokeRequest request, @NotNull Handler<Object> next) {
                handler.handle(request);
            }
        });
View Full Code Here

Examples of com.jetdrone.vertx.yoke.Middleware

     * Specify a middleware that will be called for a matching HTTP POST
     * @param regex A regular expression
     * @param handler The middleware to call
     */
    public Router post(@NotNull final Pattern regex, @NotNull final Handler<YokeRequest> handler) {
        return post(regex, new Middleware() {
            @Override
            public void handle(@NotNull YokeRequest request, @NotNull Handler<Object> next) {
                handler.handle(request);
            }
        });
View Full Code Here

Examples of com.jetdrone.vertx.yoke.Middleware

     * Specify a middleware that will be called for a matching HTTP DELETE
     * @param regex A regular expression
     * @param handler The middleware to call
     */
    public Router delete(@NotNull final Pattern regex, @NotNull final Handler<YokeRequest> handler) {
        return delete(regex, new Middleware() {
            @Override
            public void handle(@NotNull YokeRequest request, @NotNull Handler<Object> next) {
                handler.handle(request);
            }
        });
View Full Code Here

Examples of com.jetdrone.vertx.yoke.Middleware

     * Specify a middleware that will be called for a matching HTTP OPTIONS
     * @param regex A regular expression
     * @param handler The middleware to call
     */
    public Router options(@NotNull final Pattern regex, @NotNull final Handler<YokeRequest> handler) {
        return options(regex, new Middleware() {
            @Override
            public void handle(@NotNull YokeRequest request, @NotNull Handler<Object> next) {
                handler.handle(request);
            }
        });
View Full Code Here

Examples of com.jetdrone.vertx.yoke.Middleware

     * Specify a middleware that will be called for a matching HTTP HEAD
     * @param regex A regular expression
     * @param handler The middleware to call
     */
    public Router head(@NotNull final Pattern regex, @NotNull final Handler<YokeRequest> handler) {
        return head(regex, new Middleware() {
            @Override
            public void handle(@NotNull YokeRequest request, @NotNull Handler<Object> next) {
                handler.handle(request);
            }
        });
View Full Code Here

Examples of com.jetdrone.vertx.yoke.Middleware

     * Specify a middleware that will be called for a matching HTTP TRACE
     * @param regex A regular expression
     * @param handler The middleware to call
     */
    public Router trace(@NotNull final Pattern regex, @NotNull final Handler<YokeRequest> handler) {
        return trace(regex, new Middleware() {
            @Override
            public void handle(@NotNull YokeRequest request, @NotNull Handler<Object> next) {
                handler.handle(request);
            }
        });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.