class MyUserFilter extends UserFilter {

 @Override
 protected boolean isAccessAllowed(ServletRequest request,ServletResponse response, Object mappedValue) {
    return super.isAccessAllowed(request,response,mappedValue);
 }

    @Override
    protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception {
        return super.onAccessDenied(request, response);
    }

    @Override
    protected void redirectToLogin(ServletRequest request, ServletResponse response) throws IOException {<FILL_FUNCTION_BODY>}

}

//        super.redirectToLogin(request, response);
        response.setCharacterEncoding("utf-8");
        response.setContentType("application/json; charset=utf-8");
        PrintWriter writer = response.getWriter();
        try {
            HttpResult httpResult = HttpResult.buildResult(HttpStatus.NOLOGIN);
            JSONObject responseJSONObject = JSONObject.fromObject(httpResult);
            writer.write(responseJSONObject.toString());
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            if (writer != null) {
                writer.close();
            }
        }



    
<methods>public void <init>() <variables>