public GovImpactAnalysisDataProcessor( ServletConfig config, HttpSession session, HttpServletRequest request) throws AxisFault { client = new GovImpactAdminServiceClient(config, session, request); serverURL = CarbonUIUtil.getAdminConsoleURL( CarbonUIUtil.getServerConfigurationProperty("WebContextRoot")); }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html;charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); org.apache.jasper.runtime.JspRuntimeLibrary.include( request, response, "../dialog/display_messages.jsp", out, false); out.write('\n'); out.write('\n'); // fmt:bundle org.apache.taglibs.standard.tag.rt.fmt.BundleTag _jspx_th_fmt_005fbundle_005f0 = (org.apache.taglibs.standard.tag.rt.fmt.BundleTag) _005fjspx_005ftagPool_005ffmt_005fbundle_0026_005fbasename.get( org.apache.taglibs.standard.tag.rt.fmt.BundleTag.class); _jspx_th_fmt_005fbundle_005f0.setPageContext(_jspx_page_context); _jspx_th_fmt_005fbundle_005f0.setParent(null); // /admin/index.jsp(28,0) name = basename type = null reqTime = true required = true fragment // = false deferredValue = false expectedTypeName = null deferredMethod = false // methodSignature = null _jspx_th_fmt_005fbundle_005f0.setBasename("org.wso2.carbon.i18n.Resources"); int _jspx_eval_fmt_005fbundle_005f0 = _jspx_th_fmt_005fbundle_005f0.doStartTag(); if (_jspx_eval_fmt_005fbundle_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { if (_jspx_eval_fmt_005fbundle_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.pushBody(); _jspx_th_fmt_005fbundle_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out); _jspx_th_fmt_005fbundle_005f0.doInitBody(); } do { out.write('\n'); out.write('\n'); Object param = session.getAttribute("authenticated"); String passwordExpires = (String) session.getAttribute(ServerConstants.PASSWORD_EXPIRATION); boolean loggedIn = false; if (param != null) { loggedIn = (Boolean) param; } boolean serverAdminComponentFound = CarbonUIUtil.isContextRegistered(config, "/server-admin/"); if (CharacterEncoder.getSafeText(request.getParameter("skipLoginPage")) != null) { response.sendRedirect("../admin/login_action.jsp"); return; } out.write("\n"); out.write(" <div id=\"middle\">\n"); out.write(" "); String serverName = CarbonUIUtil.getServerConfigurationProperty("Name"); out.write("\n"); out.write(" <h2>\n"); out.write(" "); // fmt:message org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f0 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.get( org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class); _jspx_th_fmt_005fmessage_005f0.setPageContext(_jspx_page_context); _jspx_th_fmt_005fmessage_005f0.setParent( (javax.servlet.jsp.tagext.Tag) _jspx_th_fmt_005fbundle_005f0); // /admin/index.jsp(52,12) name = key type = null reqTime = true required = false fragment // = false deferredValue = false expectedTypeName = null deferredMethod = false // methodSignature = null _jspx_th_fmt_005fmessage_005f0.setKey("carbon.server.home"); int _jspx_eval_fmt_005fmessage_005f0 = _jspx_th_fmt_005fmessage_005f0.doStartTag(); if (_jspx_eval_fmt_005fmessage_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { if (_jspx_eval_fmt_005fmessage_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.pushBody(); _jspx_th_fmt_005fmessage_005f0.setBodyContent( (javax.servlet.jsp.tagext.BodyContent) out); _jspx_th_fmt_005fmessage_005f0.doInitBody(); } do { out.write("\n"); out.write(" "); // fmt:param org.apache.taglibs.standard.tag.rt.fmt.ParamTag _jspx_th_fmt_005fparam_005f0 = (org.apache.taglibs.standard.tag.rt.fmt.ParamTag) _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.get( org.apache.taglibs.standard.tag.rt.fmt.ParamTag.class); _jspx_th_fmt_005fparam_005f0.setPageContext(_jspx_page_context); _jspx_th_fmt_005fparam_005f0.setParent( (javax.servlet.jsp.tagext.Tag) _jspx_th_fmt_005fmessage_005f0); // /admin/index.jsp(53,16) name = value type = null reqTime = true required = false // fragment = false deferredValue = false expectedTypeName = null deferredMethod = // false methodSignature = null _jspx_th_fmt_005fparam_005f0.setValue(serverName); int _jspx_eval_fmt_005fparam_005f0 = _jspx_th_fmt_005fparam_005f0.doStartTag(); if (_jspx_th_fmt_005fparam_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.reuse( _jspx_th_fmt_005fparam_005f0); return; } _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.reuse( _jspx_th_fmt_005fparam_005f0); out.write("\n"); out.write(" "); int evalDoAfterBody = _jspx_th_fmt_005fmessage_005f0.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); if (_jspx_eval_fmt_005fmessage_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.popBody(); } } if (_jspx_th_fmt_005fmessage_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.reuse( _jspx_th_fmt_005fmessage_005f0); return; } _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.reuse( _jspx_th_fmt_005fmessage_005f0); out.write("\n"); out.write(" </h2>\n"); out.write("\n"); out.write(" <p>\n"); out.write(" "); // fmt:message org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f1 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.get( org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class); _jspx_th_fmt_005fmessage_005f1.setPageContext(_jspx_page_context); _jspx_th_fmt_005fmessage_005f1.setParent( (javax.servlet.jsp.tagext.Tag) _jspx_th_fmt_005fbundle_005f0); // /admin/index.jsp(58,12) name = key type = null reqTime = true required = false fragment // = false deferredValue = false expectedTypeName = null deferredMethod = false // methodSignature = null _jspx_th_fmt_005fmessage_005f1.setKey("carbon.console.welcome"); int _jspx_eval_fmt_005fmessage_005f1 = _jspx_th_fmt_005fmessage_005f1.doStartTag(); if (_jspx_eval_fmt_005fmessage_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { if (_jspx_eval_fmt_005fmessage_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.pushBody(); _jspx_th_fmt_005fmessage_005f1.setBodyContent( (javax.servlet.jsp.tagext.BodyContent) out); _jspx_th_fmt_005fmessage_005f1.doInitBody(); } do { out.write("\n"); out.write(" "); // fmt:param org.apache.taglibs.standard.tag.rt.fmt.ParamTag _jspx_th_fmt_005fparam_005f1 = (org.apache.taglibs.standard.tag.rt.fmt.ParamTag) _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.get( org.apache.taglibs.standard.tag.rt.fmt.ParamTag.class); _jspx_th_fmt_005fparam_005f1.setPageContext(_jspx_page_context); _jspx_th_fmt_005fparam_005f1.setParent( (javax.servlet.jsp.tagext.Tag) _jspx_th_fmt_005fmessage_005f1); // /admin/index.jsp(59,16) name = value type = null reqTime = true required = false // fragment = false deferredValue = false expectedTypeName = null deferredMethod = // false methodSignature = null _jspx_th_fmt_005fparam_005f1.setValue(serverName); int _jspx_eval_fmt_005fparam_005f1 = _jspx_th_fmt_005fparam_005f1.doStartTag(); if (_jspx_th_fmt_005fparam_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.reuse( _jspx_th_fmt_005fparam_005f1); return; } _005fjspx_005ftagPool_005ffmt_005fparam_0026_005fvalue_005fnobody.reuse( _jspx_th_fmt_005fparam_005f1); out.write("\n"); out.write(" "); int evalDoAfterBody = _jspx_th_fmt_005fmessage_005f1.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); if (_jspx_eval_fmt_005fmessage_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.popBody(); } } if (_jspx_th_fmt_005fmessage_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.reuse( _jspx_th_fmt_005fmessage_005f1); return; } _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey.reuse( _jspx_th_fmt_005fmessage_005f1); out.write("\n"); out.write(" </p>\n"); out.write("\n"); out.write(" <p> </p>\n"); out.write("\n"); out.write(" <div id=\"workArea\">\n"); out.write(" <div id=\"systemInfoDiv\">\n"); out.write(" "); if (loggedIn && passwordExpires != null) { out.write("\n"); out.write(" <div class=\"info-box\"><p>Your password expires at "); out.print(passwordExpires); out.write( ". Please change by visiting <a href=\"../user/change-passwd.jsp?isUserChange=true&returnPath=../admin/index.jsp\">here</a></p></div>\n"); out.write(" "); } if (loggedIn && serverAdminComponentFound) { out.write("\n"); out.write(" <div id=\"result\"></div>\n"); out.write(" <script type=\"text/javascript\">\n"); out.write(" jQuery.noConflict();\n"); out.write(" var refresh;\n"); out.write(" function refreshStats() {\n"); out.write( " var url = \"../server-admin/system_status_ajaxprocessor.jsp\";\n"); out.write(" var data = null;\n"); out.write(" try {\n"); out.write(" jQuery.ajax({\n"); out.write(" url: \"../admin/jsp/session-validate.jsp\",\n"); out.write(" type: \"GET\",\n"); out.write(" dataType: \"html\",\n"); out.write(" data: data,\n"); out.write(" complete: function(res, status){\n"); out.write( " if (res.responseText.search(/----valid----/) != -1) {\n"); out.write( " jQuery(\"#result\").load(url, null, function (responseText, status, XMLHttpRequest) {\n"); out.write(" if (status != \"success\") {\n"); out.write(" stopRefreshStats();\n"); out.write(" }\n"); out.write(" });\n"); out.write(" } else {\n"); out.write(" stopRefreshStats();\n"); out.write(" }\n"); out.write(" },error: function(res, status, error){\n"); out.write(" \tstopRefreshStats();\n"); out.write(" }\n"); out.write(" });\n"); out.write(" } catch (e) {\n"); out.write(" \tstopRefreshStats();\n"); out.write(" }\n"); out.write(" }\n"); out.write(" function stopRefreshStats() {\n"); out.write(" if (refresh) {\n"); out.write(" clearInterval(refresh);\n"); out.write(" }\n"); out.write(" }\n"); out.write(" try {\n"); out.write(" jQuery(document).ready(function() {\n"); out.write(" refreshStats();\n"); out.write( " if (document.getElementById('systemInfoDiv').style.display == '') {\n"); out.write( " refresh = setInterval(\"refreshStats()\", 6000);\n"); out.write(" }\n"); out.write(" });\n"); out.write(" } catch (e) {\n"); out.write(" } // ignored\n"); out.write(" </script>\n"); out.write(" "); } out.write("\n"); out.write(" </div>\n"); out.write(" </div>\n"); out.write(" </div>\n"); int evalDoAfterBody = _jspx_th_fmt_005fbundle_005f0.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); if (_jspx_eval_fmt_005fbundle_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { out = _jspx_page_context.popBody(); } } if (_jspx_th_fmt_005fbundle_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005ffmt_005fbundle_0026_005fbasename.reuse( _jspx_th_fmt_005fbundle_005f0); return; } _005fjspx_005ftagPool_005ffmt_005fbundle_0026_005fbasename.reuse( _jspx_th_fmt_005fbundle_005f0); out.write('\n'); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }