org.smart4j.framework.mvc.Handler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smart-framework Show documentation
Show all versions of smart-framework Show documentation
Smart Framework is a lightweight Java Web Framework
package org.smart4j.framework.mvc;
import java.lang.reflect.Method;
import java.util.regex.Matcher;
/**
* 封装 Action 方法相关信息
*
* @author huangyong
* @since 1.0
*/
public class Handler {
private Class> actionClass;
private Method actionMethod;
private Matcher requestPathMatcher;
public Handler(Class> actionClass, Method actionMethod) {
this.actionClass = actionClass;
this.actionMethod = actionMethod;
}
public Class> getActionClass() {
return actionClass;
}
public Method getActionMethod() {
return actionMethod;
}
public Matcher getRequestPathMatcher() {
return requestPathMatcher;
}
public void setRequestPathMatcher(Matcher requestPathMatcher) {
this.requestPathMatcher = requestPathMatcher;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy