From 8fead967af2e4face43298f29494a42b7991175a Mon Sep 17 00:00:00 2001 From: Jinbokai Date: Fri, 10 Aug 2018 12:46:19 +0800 Subject: [PATCH] ForbidType.java edited online with Bitbucket --- .../java/com/fr/start/server/ForbidType.java | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/designer-base/src/main/java/com/fr/start/server/ForbidType.java b/designer-base/src/main/java/com/fr/start/server/ForbidType.java index 4dac8a69f..8b1378917 100644 --- a/designer-base/src/main/java/com/fr/start/server/ForbidType.java +++ b/designer-base/src/main/java/com/fr/start/server/ForbidType.java @@ -1,29 +1 @@ -package com.fr.start.server; -import javax.servlet.*; -import java.io.IOException; -import javax.servlet.http.HttpServletResponse; - -public class ForbidType implements Filter { - private String message; - - public void init(FilterConfig config) throws ServletException { - message = config.getInitParameter("msg"); - - System.out.println("Filter is ready."); - } - - @Override - public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { - System.out.println(message); - - HttpServletResponse response = (HttpServletResponse) servletResponse; - - response.sendRedirect("/webroot/decision"); - } - - public void destroy() { - - } - -} \ No newline at end of file