public static void setGlobalSettings(final WebApplication application, final int httpPort,
		final int httpsPort, final String footerFilterName, final String encoding,
		final String... patterns)
	{
		// Standard-Encoding for Markup-Files
		application.getMarkupSettings().setDefaultMarkupEncoding(encoding);
		// Sets the Response-Header to Character encoding
		// this means Content-Type text/html;charset=<encoding>
		application.getRequestCycleSettings().setResponseRequestEncoding(encoding);
		// set footer scripts...
		ApplicationExtensions.setHeaderResponseDecorator(application, footerFilterName);
		// set up ports for http and https...
		ApplicationExtensions.setRootRequestMapper(application, httpPort, httpsPort);
		// add file patterns to the resource guard...
		ApplicationExtensions.addFilePatternsToPackageResourceGuard(application, patterns);
		// Removes(strips) all wicket tags like <wicket:panel>, <wicket:extend> and <wicket:child>.
		// This is very important to set to true if you use the library wicket-jquery-ui
		application.getMarkupSettings().setStripWicketTags(true);
	}
public static void setGlobalSettings ( final WebApplication application , final int httpPort , final int httpsPort , final String footerFilterName , final String encoding , final String ... patterns ) { application . getMarkupSettings ( ) . setDefaultMarkupEncoding ( encoding ) ; application . getRequestCycleSettings ( ) . setResponseRequestEncoding ( encoding ) ; ApplicationExtensions . setHeaderResponseDecorator ( application , footerFilterName ) ; ApplicationExtensions . setRootRequestMapper ( application , httpPort , httpsPort ) ; ApplicationExtensions . addFilePatternsToPackageResourceGuard ( application , patterns ) ; application . getMarkupSettings ( ) . setStripWicketTags ( true ) ; }
Can be used to set the global settings for development and deployment mode for the given
application.

@param application
the application
@param httpPort
the http port
@param httpsPort
the https port
@param footerFilterName
the footer filter name
@param encoding
the encoding
@param patterns
the patterns