@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);
 }