io.github.kamilszewc.simplerouter.RoutingContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simple-java-http-router Show documentation
Show all versions of simple-java-http-router Show documentation
Simple Java router for building http services
The newest version!
package io.github.kamilszewc.simplerouter;
import java.util.HashMap;
import java.util.Map;
public class RoutingContext {
private Request request;
private Map pathVariables = new HashMap<>();
public RoutingContext(Request request, Map pathVariables) {
this.request = request;
this.pathVariables = pathVariables;
}
public Request getRequest() {
return request;
}
public Map getPathVariables() {
return pathVariables;
}
}