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

com.artipie.nuget.http.Route Maven / Gradle / Ivy

There is a newer version: 1.5.5
Show newest version
/*
 * The MIT License (MIT) Copyright (c) 2020-2023 artipie.com
 * https://github.com/artipie/artipie/blob/master/LICENSE.txt
 */
package com.artipie.nuget.http;

/**
 * Route that leads to resource.
 *
 * @since 0.1
 */
public interface Route {

    /**
     * Base path for resources.
     * If HTTP request path starts with given path, then this route may be used.
     *
     * @return Path prefix covered by this route.
     */
    String path();

    /**
     * Gets resource by path.
     *
     * @param path Path to resource.
     * @return Resource by path.
     */
    Resource resource(String path);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy