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

spark.Route Maven / Gradle / Ivy

Go to download

A micro framework for creating web applications in Kotlin and Java 8 with minimal effort

There is a newer version: 2.9.4
Show newest version
package spark;

/**
 * Created by Per Wendel on 2014-05-10.
 */
public interface Route {

    /**
     * Invoked when a request is made on this route's corresponding path e.g. '/hello'
     *
     * @param request  The request object providing information about the HTTP request
     * @param response The response object providing functionality for modifying the response
     * @return The content to be set in the response
     * @throws java.lang.Exception implementation can choose to throw exception
     */
    Object handle(Request request, Response response) throws Exception;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy