/** * Utility method to build a standard content disposition header. * * <p>It will concatenate the titles of the various layers in the map context, or generate * "geoserver" instead (in the event no layer title is set). * * <p>The file name will be followed by the extension provided, for example, to generate * layer.pdf extension will be ".pdf" */ public void setContentDispositionHeader( final WMSMapContent mapContent, final String extension) { setContentDispositionHeader(mapContent, extension, true); }