| | |
| | | String ctxPath = e.getHttpContext().getPath(); |
| | | String uriPath = e.getRequestURI().getPath(); |
| | | String fName = uriPath.substring(ctxPath.length()); |
| | | |
| | | |
| | | AdocActor actor = new AdocActor(); |
| | | actor.handle(e, e.getHttpContext().getAttributes().get(FileHandler.ATTR_FILE_BASE).toString(), fName); |
| | | String query = uri.getQuery(); |
| | | if(query != null && query.equalsIgnoreCase("pdf=true")) { |
| | | actor.handle(e, e.getHttpContext().getAttributes().get(FileHandler.ATTR_FILE_BASE).toString(), fName, true); |
| | | } else { |
| | | actor.handle(e, e.getHttpContext().getAttributes().get(FileHandler.ATTR_FILE_BASE).toString(), fName, false); |
| | | } |
| | | } |
| | | |
| | | |