%@page import="java.io.PrintWriter"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="org.unicode.cldr.test.CheckCLDR.CheckStatus.Subtype"%> <%@page import="org.unicode.cldr.web.SubtypeToURLMap"%> <%@page import="java.util.TreeSet"%> <%@page import="java.net.URL"%> <%@page import="org.unicode.cldr.web.HttpStatusCache" %> <%@page import="org.unicode.cldr.util.CLDRConfig" %> <%@page import="org.unicode.cldr.util.StackTracker" %> <%@page import="org.unicode.cldr.util.CLDRURLS" %> <% final String BASE = request.getContextPath() + request.getServletPath(); // allow ?flush=true - redirect if(request.getParameter("flush") != null) { final String recheck = request.getParameter("flush"); %> <% if(recheck.startsWith("MAP")) { try { %>
<%
t.printStackTrace(new PrintWriter(out));
out.println("");
return; // do not auto refresh.
}
} else if(recheck.startsWith("http")) {
%>(redirect in a couple seconds)
<%
return;
}
%>
CLDR_SUBTYPE_URL <%= CLDRURLS.toHTML(SubtypeToURLMap.getDefaultUrl()) %>
Instructions: This shows the status of the subtype to URL mapping data.
Each line here shows the CLDR error subtypes.
Code - this is the code
url - this is the URL specified in the subtypeMapping.txt file
Status - this shows whether the URL was fetched successfully. (200 indicates success.)
Click the 'reload' π button to re-check the URL.
<%= SubtypeToURLMap.COMMENT + " " + SubtypeToURLMap.BEGIN_MARKER %><% for(final String u : map.getUrls()) { Integer checkStatus; checkStatus = HttpStatusCache.check(new URL(u)); %>
#------------------
<%= u %><% if(! HttpStatusCache.isGoodStatus(checkStatus)) { %> # URL failed to fetch: <%= checkStatus %> " title="flush">π
<%= s.name() %>,<% } } if(map.getUnhandledTypes().isEmpty()) { %>
#------------------
# All types handled!
<% } else { %>
#------------------
# <%= sub.name() %>,<% } } %>
<%= SubtypeToURLMap.COMMENT + " " + SubtypeToURLMap.END_MARKER %>