
com.magictools.http.server.action.Action Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of magic-tools-all Show documentation
Show all versions of magic-tools-all Show documentation
magic-tools 是一个小而全的Java工具类库,通过静态方法封装,降低相关API的学习成本,提高工作效率,使Java拥有函数式语言般的优雅,让Java语言也可以“甜甜的”。
The newest version!
package com.magictools.http.server.action;
import com.magictools.http.server.HttpServerRequest;
import com.magictools.http.server.HttpServerResponse;
import java.io.IOException;
/**
* 请求处理接口
* 当用户请求某个Path,则调用相应Action的doAction方法
*
* @author Looly
* @since 5.2.6
*/
@FunctionalInterface
public interface Action {
/**
* 处理请求
*
* @param request 请求对象
* @param response 响应对象
* @throws IOException IO异常
*/
void doAction(HttpServerRequest request, HttpServerResponse response) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy