@Override protected ProcessorResult processElement(Arguments arguments, Element element) { HttpServletRequest request = ((IWebContext) arguments.getContext()).getHttpServletRequest(); HttpServletResponse response = ((IWebContext) arguments.getContext()).getHttpServletResponse(); HtmlTable htmlTable = (HtmlTable) RequestUtils.getFromRequest(DataTablesDialect.INTERNAL_BEAN_TABLE, request); ProcessorResult processorResult = doProcessElement(arguments, element, request, response, htmlTable); return processorResult; }
final HttpServletResponse response = webContext.getHttpServletResponse();
final HttpServletResponse response = webContext.getHttpServletResponse(); final ServletContext servletContext = webContext.getServletContext();
final HttpServletResponse response = webContext.getHttpServletResponse(); final ServletContext servletContext = webContext.getServletContext();
HttpServletResponse response = ((IWebContext) arguments.getContext()).getHttpServletResponse();
final HttpServletResponse response = webContext.getHttpServletResponse(); final ServletContext servletContext = webContext.getServletContext();
/** * Sets up the export properties, before the filter intercepts the response. * * @param arguments * The Thymeleaf arguments. * @param htmlTable * The {@link HtmlTable} to export. */ private void setupExport(Arguments arguments, HtmlTable htmlTable) { HttpServletRequest request = ((IWebContext) arguments.getContext()).getHttpServletRequest(); HttpServletResponse response = ((IWebContext) arguments.getContext()).getHttpServletResponse(); String currentExportType = ExportUtils.getCurrentExportType(request); htmlTable.getTableConfiguration().setExporting(true); htmlTable.getTableConfiguration().setCurrentExportFormat(currentExportType); // Call the export delegate ExportDelegate exportDelegate = new ExportDelegate(htmlTable, request); exportDelegate.prepareExport(); response.reset(); }
final HttpServletResponse response = webContext.getHttpServletResponse(); final ServletContext servletContext = webContext.getServletContext();