public void initImageLoader(HTMLDocument document) {
   try {
     document.setBase(new URL(ImageLoaderCache.IMAGE_URL_PREFIX));
   } catch (MalformedURLException e) {
     log.error(e.getMessage());
   }
   setContextResource(navigator.getCurrentResource());
   document.getDocumentProperties().put("imageCache", this);
 }
Exemplo n.º 2
0
  public void printProps() {
    Dictionary<Object, Object> dic = htmlDoc.getDocumentProperties();
    Enumeration e = dic.keys();

    while (e.hasMoreElements()) {

      Object keyObj = e.nextElement();
      Object valObj = dic.get(keyObj);
      logger.debug(keyObj + " " + valObj);
    }
  }