@Override
 public String getTemplate(HandlerContext context) throws IOException {
   return ResourceUtils.getContentFromInputStream(
       Thread.currentThread().getContextClassLoader().getResourceAsStream(PAGE_LOCATION));
 }
Пример #2
0
 @Override
 protected String doGetContent(
     Asset asset, Map<String, Object> parameters, HttpServletRequest request) {
   return ResourceUtils.getContentFromUrl(request, asset.getProcessedConfigLocation(), true);
 }