1 5 6 package org.exoplatform.services.xml.resolving.impl.simple; 7 8 import java.io.IOException ; 9 import org.xml.sax.EntityResolver ; 10 import org.apache.commons.logging.Log; 11 import org.exoplatform.services.log.LogService; 12 import org.exoplatform.services.xml.resolving.SimpleResolvingService; 13 14 24 25 public class SimpleDirResolvingServiceImpl implements SimpleResolvingService 26 { 27 private static final String DIR_NAME = "/dtd"; 28 private String dtdName; 29 private Log log; 30 31 public SimpleDirResolvingServiceImpl(LogService logService) 32 { 33 log = logService.getLog("SimpleDirResolvingServiceImpl"); 34 } 35 36 40 41 public EntityResolver getEntityResolver() 42 { 43 try { 44 45 EntityResolver resolver = new SimpleResolver(DIR_NAME); 46 52 return resolver; 53 54 } catch (Exception e) { 55 log.info("Error on get SimpleResolver",e); 56 return null; 57 } 58 } 59 60 } 61 | Popular Tags |