
com.flyfish.oauth.common.sync.SyncRequestAcceptor Maven / Gradle / Ivy
package com.flyfish.oauth.common.sync;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* 同步请求接收处理,通过http请求匹配规则
*/
public interface SyncRequestAcceptor {
/**
* 执行同步
*/
void sync(HttpServletRequest request, HttpServletResponse response) throws IOException;
/**
* 匹配
*
* @param request 请求
* @return 结果
*/
boolean accept(HttpServletRequest request);
/**
* 设置监听器
*/
void setListener(SyncRequestListener listener);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy