class SecurityFilterProxy extends OncePerRequestFilter {


    private String NOT_ALLOW_METHODS = "TRACE";

    @Override
    protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response,
                                    FilterChain filterChain) throws ServletException, IOException {<FILL_FUNCTION_BODY>}
}

        if((","+NOT_ALLOW_METHODS+",").indexOf(","+request.getMethod().toUpperCase()+",") > -1) {
            response.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);
            response.setHeader("Content-Type", "text/html; charset=iso-8859-1");
            response.getWriter().println("Method Not Allowed");
            return;
        }
        super.doFilter(request, response, filterChain);
    
<no_super_class>