?? handler.jsp
字號(hào):
<%@ page import="org.archive.crawler.admin.CrawlJobHandler, org.archive.crawler.Heritrix" %><% /** * This include page ensures that the handler exists and is ready to be * accessed. */ CrawlJobHandler handler = (CrawlJobHandler)application.getAttribute("handler"); Heritrix heritrix = (Heritrix)application.getAttribute("heritrix"); // If handler is empty then this is the first time this bit of code is // being run since the server came online. In that case get or create the // handler. if (handler == null) { if(Heritrix.isSingleInstance()) { heritrix = Heritrix.getSingleInstance(); handler = heritrix.getJobHandler(); application.setAttribute("heritrix", heritrix); application.setAttribute("handler", handler); } else { // TODO: // If we get here, then there are multiple heritrix instances // and we have to put up a screen allowing the user choose between. // Otherwise, there is no Heritrix instance. Thats a problem. throw new RuntimeException("No heritrix instance (or multiple " + "to choose from and we haven't implemented this yet)"); } }%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -