You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
870 B
24 lines
870 B
package com.tptj.demo.hg.embed.request.filter; |
|
|
|
import com.fr.decision.fun.impl.AbstractEmbedRequestFilterProvider; |
|
|
|
import javax.servlet.ServletException; |
|
import javax.servlet.http.HttpServletRequest; |
|
import javax.servlet.http.HttpServletResponse; |
|
import java.io.IOException; |
|
|
|
/** |
|
* @author 秃破天际 |
|
* @version 10.0 |
|
* Created by 秃破天际 on 2021-03-26 |
|
* 这是一个错误的示例!在这个接口中如果对响应做了输出性质的动作,则后续逻辑就会报错 |
|
* 因为此接口除了报错外无法终止其他filter的允许也无法终止后续产品逻辑的运行 |
|
**/ |
|
public class ErrorDemo extends AbstractEmbedRequestFilterProvider { |
|
|
|
|
|
@Override |
|
public void filter(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { |
|
response.sendRedirect("https://www.baidu.com/"); |
|
} |
|
} |