public final class ApplicationExtensions extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addFilePatternsToPackageResourceGuard(org.apache.wicket.Application application,
String... patterns)
Adds the given file patterns to package resource guard from the given application.
|
static void |
addResourceFinder(org.apache.wicket.protocol.http.WebApplication application,
String resourcePath)
Adds the given resourcePath to the resource finder from the given application.
|
static String |
getContextPath(org.apache.wicket.protocol.http.WebApplication application)
Gets the context path from the given WebApplication.
|
static org.apache.wicket.request.resource.ResourceReference |
getJQueryReference()
Gets the default jquery reference from the current application.
|
static org.apache.wicket.request.resource.ResourceReference |
getJQueryReference(org.apache.wicket.Application application)
Gets the default jquery reference from the given application.
|
static String |
getRealPath(org.apache.wicket.protocol.http.WebApplication application,
String path)
Gets the real path corresponding to the given virtual path from the given WebApplication.
|
static org.apache.wicket.protocol.http.IRequestLogger |
getRequestLogger()
Gets the request logger of the current WebApplication.
|
static org.apache.wicket.protocol.http.IRequestLogger |
getRequestLogger(org.apache.wicket.protocol.http.WebApplication webApplication)
Gets the request logger from the given WebApplication.
|
static org.apache.wicket.util.resource.IResourceStream |
getResourceStream(File file,
String contentType)
Gets the resource stream from the given parameters.
|
static org.apache.wicket.util.resource.IResourceStream |
getResourceStream(org.apache.wicket.protocol.http.WebApplication application,
String path,
String contentType)
Gets the resource stream from the given parameters.
|
static void |
initializeSpring(org.apache.wicket.protocol.http.WebApplication application)
Initializes the given WebApplication with the Spring framework.
|
static void |
replaceJQueryReference(org.apache.wicket.protocol.http.WebApplication application,
String cdnjsUrl)
Replace the default jquery resource reference from the given application with the given cdn
url.
|
static void |
setDebugSettingsForDeployment(org.apache.wicket.Application application)
Deprecated.
use instead
setDeploymentModeConfiguration(Application) |
static void |
setDebugSettingsForDevelopment(org.apache.wicket.Application application)
Sets the debug settings for development mode for the given application.
|
static void |
setDefaultDebugSettingsForDevelopment(org.apache.wicket.protocol.http.WebApplication application)
Sets a set of default development settings for development mode for the given application.
|
static void |
setDefaultDeploymentModeConfiguration(org.apache.wicket.Application application,
org.apache.wicket.request.cycle.AbstractRequestCycleListener applicationRequestCycleListener)
Sets a set of default deployment settings for deployment mode for the given application.
|
static void |
setDeploymentModeConfiguration(org.apache.wicket.Application application)
Sets the deployment settings for deployment mode for the given application.
|
static void |
setExceptionSettingsForDeployment(org.apache.wicket.Application application,
org.apache.wicket.request.cycle.AbstractRequestCycleListener applicationRequestCycleListener)
Sets the deployment exception settings for the given application.
|
static void |
setExceptionSettingsForDevelopment(org.apache.wicket.Application application)
Sets the exception settings for development mode for the given application.
|
static void |
setFooterHeaderResponse(org.apache.wicket.Application application,
String footerFilterName)
Deprecated.
use instead
setHeaderResponseDecorator(Application, String) |
static void |
setGlobalSettings(org.apache.wicket.protocol.http.WebApplication application,
int httpPort,
int httpsPort,
String footerFilterName,
String encoding,
String... patterns)
Can be used to set the global settings for development and deployment mode for the given
application.
|
static void |
setHeaderResponseDecorator(org.apache.wicket.Application application,
String footerFilterName)
Sets an
IHeaderResponseDecorator for the given application to use to decorate header
responses. |
static void |
setHtmlHotDeploy(org.apache.wicket.protocol.http.WebApplication application)
Use this method to enable hot deploy of your html templates on development.
|
static org.apache.wicket.request.IRequestMapper |
setRootRequestMapper(org.apache.wicket.Application application,
int httpPort,
int httpsPort)
Sets the root request mapper for the given application from the given httpPort and httpsPort.
|
static void |
setRootRequestMapperForDevelopment(org.apache.wicket.Application application,
int httpPort,
int httpsPort)
Sets the RootRequestMapper for the given application from the given httpPort and httpsPort.
|
static void |
setSettingsForDeployment(org.apache.wicket.Application application)
Deprecated.
use instead
setDeploymentModeConfiguration(Application) |
public static void addFilePatternsToPackageResourceGuard(org.apache.wicket.Application application,
String... patterns)
application - the applicationpatterns - the patternspublic static void addResourceFinder(org.apache.wicket.protocol.http.WebApplication application,
String resourcePath)
application - the applicationresourcePath - the resource pathIResourceSettings.getResourceFinders()public static String getContextPath(org.apache.wicket.protocol.http.WebApplication application)
application - the WebApplicationpublic static org.apache.wicket.request.resource.ResourceReference getJQueryReference()
public static org.apache.wicket.request.resource.ResourceReference getJQueryReference(org.apache.wicket.Application application)
application - the applicationpublic static String getRealPath(org.apache.wicket.protocol.http.WebApplication application, String path)
ServletContext.getRealPath(String).application - the wicket applicationpath - the virtual path to be translated to a real pathpublic static org.apache.wicket.protocol.http.IRequestLogger getRequestLogger()
public static org.apache.wicket.protocol.http.IRequestLogger getRequestLogger(org.apache.wicket.protocol.http.WebApplication webApplication)
webApplication - the web applicationpublic static org.apache.wicket.util.resource.IResourceStream getResourceStream(File file, String contentType) throws IOException
file - the filecontentType - the content typeIOException - Signals that an I/O exception has occurred.public static org.apache.wicket.util.resource.IResourceStream getResourceStream(org.apache.wicket.protocol.http.WebApplication application,
String path,
String contentType)
throws IOException
application - the applicationpath - the pathcontentType - the content typeIOException - Signals that an I/O exception has occurred.public static void initializeSpring(org.apache.wicket.protocol.http.WebApplication application)
application - the WebApplicationpublic static void replaceJQueryReference(org.apache.wicket.protocol.http.WebApplication application,
String cdnjsUrl)
application - the WebApplicationcdnjsUrl - the given cdn url.@Deprecated public static void setDebugSettingsForDeployment(org.apache.wicket.Application application)
setDeploymentModeConfiguration(Application)application - the new debug settings for developmentpublic static void setDebugSettingsForDevelopment(org.apache.wicket.Application application)
application - the new debug settings for developmentpublic static void setDefaultDebugSettingsForDevelopment(org.apache.wicket.protocol.http.WebApplication application)
application - the new debug settings for developmentpublic static void setDefaultDeploymentModeConfiguration(org.apache.wicket.Application application,
org.apache.wicket.request.cycle.AbstractRequestCycleListener applicationRequestCycleListener)
application - the application to set the settingsapplicationRequestCycleListener - the AbstractRequestCycleListener to set.public static void setDeploymentModeConfiguration(org.apache.wicket.Application application)
application - the application to set the settingspublic static void setExceptionSettingsForDeployment(org.apache.wicket.Application application,
org.apache.wicket.request.cycle.AbstractRequestCycleListener applicationRequestCycleListener)
application - the applicationapplicationRequestCycleListener - the application request cycle listenerpublic static void setExceptionSettingsForDevelopment(org.apache.wicket.Application application)
application - the new exception settings for development@Deprecated public static void setFooterHeaderResponse(org.apache.wicket.Application application, String footerFilterName)
setHeaderResponseDecorator(Application, String)application - the applicationfooterFilterName - the name of the filter that you will use for your footer containerpublic static void setGlobalSettings(org.apache.wicket.protocol.http.WebApplication application,
int httpPort,
int httpsPort,
String footerFilterName,
String encoding,
String... patterns)
application - the applicationhttpPort - the http porthttpsPort - the https portfooterFilterName - the footer filter nameencoding - the encodingpatterns - the patternspublic static void setHeaderResponseDecorator(org.apache.wicket.Application application,
String footerFilterName)
IHeaderResponseDecorator for the given application to use to decorate header
responses.application - the applicationfooterFilterName - the footer filter namepublic static void setHtmlHotDeploy(org.apache.wicket.protocol.http.WebApplication application)
application - the new html hot deploypublic static org.apache.wicket.request.IRequestMapper setRootRequestMapper(org.apache.wicket.Application application,
int httpPort,
int httpsPort)
application - the applicationhttpPort - the http porthttpsPort - the https portpublic static void setRootRequestMapperForDevelopment(org.apache.wicket.Application application,
int httpPort,
int httpsPort)
application - the applicationhttpPort - the http porthttpsPort - the https port@Deprecated public static void setSettingsForDeployment(org.apache.wicket.Application application)
setDeploymentModeConfiguration(Application)application - the new settings for deploymentCopyright © 2010–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.