All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.firefly.server.http2.router.Router Maven / Gradle / Ivy

package com.firefly.server.http2.router;

import com.firefly.codec.http2.model.HttpMethod;

import java.util.Set;

/**
 * @author Pengtao Qiu
 */
public interface Router extends Comparable {

    int getId();

    boolean isEnable();

    Set getMatchTypes();

    Router path(String url);

    Router pathRegex(String regex);

    Router method(String method);

    Router method(HttpMethod httpMethod);

    Router get(String url);

    Router post(String url);

    Router put(String url);

    Router delete(String url);

    Router consumes(String contentType);

    Router produces(String accept);

    Router handler(Handler context);

    Router enable();

    Router disable();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy