| | |
| | | String fileBase = exchange.getHttpContext().getAttributes().get(FileHandler.ATTR_FILE_BASE).toString(); |
| | | AdocActor actor = new AdocActor(); |
| | | HttpHelper helper = new HttpHelper(); |
| | | actor.processAdocFile(new File(fileBase, helper.getFileName(exchange)), Boolean.FALSE.toString()); |
| | | if(query != null && query.equalsIgnoreCase("pdf=true")) { |
| | | actor.processAdocFile(new File(fileBase, helper.getFileName(exchange)), Boolean.TRUE.toString()); |
| | | } else { |
| | | actor.processAdocFile(new File(fileBase, helper.getFileName(exchange)), Boolean.FALSE.toString()); |
| | | } |
| | | } |
| | | } |
| | | chain.doFilter(exchange); |