Java Code Examples for io.undertow.util.PathTemplateMatcher#remove()

The following examples show how to use io.undertow.util.PathTemplateMatcher#remove() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RoutingHandler.java    From quarkus-http with Apache License 2.0 3 votes vote down vote up
/**
 *
 * Removes the specified route from the handler
 *
 * @param method The method to remove
 * @param path the path tempate to remove
 * @return this handler
 */
public RoutingHandler remove(String method, String path) {
    PathTemplateMatcher<RoutingMatch> handler = matches.get(method);
    if(handler != null) {
        handler.remove(path);
    }
    return this;
}
 
Example 2
Source File: RoutingHandler.java    From lams with GNU General Public License v2.0 3 votes vote down vote up
/**
 *
 * Removes the specified route from the handler
 *
 * @param method The method to remove
 * @param path the path tempate to remove
 * @return this handler
 */
public RoutingHandler remove(HttpString method, String path) {
    PathTemplateMatcher<RoutingMatch> handler = matches.get(method);
    if(handler != null) {
        handler.remove(path);
    }
    return this;
}