SchemaViewerServlet.java 文件源码

java
阅读 31 收藏 0 点赞 0 评论 0

项目:joai-project 作者:
public void init(ServletConfig conf) 
         throws ServletException {
System.out.println(getDateStamp() + " SchemaViewerServlet starting");
String initErrorMsg = "";
try {
    super.init(conf);
} catch (Throwable exc) {
    initErrorMsg = "SchemaViewerServlet Initialization Error:\n  " + exc;
    prtlnErr (initErrorMsg);
}

ServletContext servletContext = getServletContext();

MetadataVocab vocab = (MetadataVocab)servletContext.getAttribute( "MetadataVocab" );
if (vocab == null) {
    throw new ServletException ("MetadataVocab not found in servlet context");
}

// set up remote searcher
/* RemoteSearcher rs = (RemoteSearcher) servletContext.getAttribute ("RemoteSearcher");
if (rs == null) {
    throw new ServletException ("RemoteSearcher not found in servlet context");
} */

System.out.println(getDateStamp() + " SchemaViewerServlet initialized.");
  }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号