public abstract class BaseWebApplication
extends org.apache.wicket.protocol.http.WebApplication
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_HTTP_PORT
The Constant DEFAULT_HTTP_PORT.
|
static int |
DEFAULT_HTTPS_PORT
The Constant DEFAULT_HTTPS_PORT.
|
protected static org.apache.log4j.Logger |
LOGGER
The logger constant.
|
| Constructor and Description |
|---|
BaseWebApplication() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getDefaultHttpPort()
Gets the default http port.
|
protected int |
getDefaultHttpsPort()
Gets the default https port.
|
org.apache.wicket.util.time.Duration |
getUptime()
Gets the elapsed duration since this application was initialized.
|
void |
init()
Inits the application configuration for global, development and deployment.
|
boolean |
isOnDevelopmentMode()
Checks if is on development mode.
|
<T extends org.apache.wicket.Page> |
mountPage(String path,
Class<T> pageClass,
org.apache.wicket.request.mapper.parameter.IPageParametersEncoder pageParametersEncoder)
Mounts a page class to the given path with the given
IPageParametersEncoder. |
protected org.apache.wicket.pageStore.IDataStore |
newApplicationDataStore()
Factory method that can be overwritten to provide an application data store.
|
protected ConfigurationPropertiesResolver |
newConfigurationPropertiesResolver(Integer defaultHttpPort,
Integer defaultHttpsPort,
String propertiesFilename)
Factory method to create a new
ConfigurationPropertiesResolver. |
protected int |
newHttpPort()
Factory method that can be overwritten to provide other http port than the default one.
|
protected int |
newHttpsPort()
Factory method that can be overwritten to provide other https port than the default one.
|
protected void |
onApplicationConfigurations()
Sets the application configurations.
|
protected void |
onBeforeApplicationConfigurations()
Called just before a the application configurations.
|
protected void |
onDeploymentModeSettings()
Callback method that can be overwritten to provide application specific deployment mode
settings.
|
protected void |
onDevelopmentModeSettings()
Callback method that can be overwritten to provide application specific development mode
settings.
|
protected void |
onGlobalSettings()
Callback method that can be overwritten to provide application specific global settings.
|
protected void |
onSecuritySettingsPlugin(org.apache.wicket.protocol.http.WebApplication application)
Callback method that can be overwritten to provide application specific security settings.
|
addResourceReplacement, addResourceReplacement, get, getAjaxRequestTargetListeners, getAjaxRequestTargetProvider, getAndRemoveBufferedResponse, getApplicationKey, getConfigurationType, getFilterFactoryManager, getInitParameter, getMimeType, getServletContext, getSessionAttributePrefix, getUpdateAutoLabelsOnAjaxRequests, getWicketFilter, hasBufferedResponse, hasFilterFactoryManager, internalDestroy, internalInit, logEventTarget, logResponseTarget, mount, mountPackage, mountPage, mountResource, newAjaxRequestTarget, newSession, newWebRequest, newWebResponse, outputDevelopmentModeWarning, renderXmlDecl, sessionUnbound, setAjaxRequestTargetProvider, setConfigurationType, setServletContext, setWicketFilter, storeBufferedResponse, unmountconfigure, createRequestCycle, decorateHeaderResponse, exists, fetchCreateAndSetSession, get, getApplicationKeys, getApplicationListeners, getApplicationSettings, getBehaviorInstantiationListeners, getComponentInitializationListeners, getComponentInstantiationListeners, getComponentOnAfterRenderListeners, getComponentOnConfigureListeners, getComponentPostOnBeforeRenderListeners, getComponentPreOnBeforeRenderListeners, getConverterLocator, getDebugSettings, getExceptionMapperProvider, getExceptionSettings, getFrameworkSettings, getHeaderContributorListeners, getHomePage, getInitializers, getJavaScriptLibrarySettings, getMapperContext, getMarkupSettings, getMetaData, getName, getPageFactory, getPageManagerContext, getPageManagerProvider, getPageRendererProvider, getPageSettings, getRequestCycleListeners, getRequestCycleProvider, getRequestCycleSettings, getRequestLogger, getRequestLoggerSettings, getResourceBundles, getResourceReferenceRegistry, getResourceSettings, getRootRequestMapper, getRootRequestMapperAsCompound, getSecuritySettings, getSessionListeners, getSessionStore, getSessionStoreProvider, getSharedResources, getStoreSettings, initApplication, initializeComponents, newConverterLocator, newMapperContext, newPageFactory, newRequestLogger, newResourceBundles, newResourceReferenceRegistry, newSharedResources, onDestroy, onEvent, setApplicationSettings, setDebugSettings, setExceptionSettings, setFrameworkSettings, setHeaderResponseDecorator, setJavaScriptLibrarySettings, setMarkupSettings, setMetaData, setName, setPageManagerProvider, setPageRendererProvider, setPageSettings, setRequestCycleProvider, setRequestCycleSettings, setRequestLoggerSettings, setResourceSettings, setRootRequestMapper, setSecuritySettings, setSessionStoreProvider, setStoreSettings, usesDeploymentConfig, usesDevelopmentConfig, validateInitprotected static final org.apache.log4j.Logger LOGGER
public static final int DEFAULT_HTTP_PORT
public static final int DEFAULT_HTTPS_PORT
public org.apache.wicket.util.time.Duration getUptime()
public final void init()
init in class org.apache.wicket.protocol.http.WebApplicationApplication.init()public <T extends org.apache.wicket.Page> void mountPage(String path, Class<T> pageClass, org.apache.wicket.request.mapper.parameter.IPageParametersEncoder pageParametersEncoder)
IPageParametersEncoder.T - type of pagepath - the path to mount the page class onpageClass - the page class to be mountedpageParametersEncoder - the encoder for the page parameter to be mountedprotected org.apache.wicket.pageStore.IDataStore newApplicationDataStore()
public void init() {
...
getStoreSettings().setInmemoryCacheSize(30);
setPageManagerProvider(new DefaultPageManagerProvider(this)
{
@Override
protected IDataStore newDataStore()
{
return newApplicationDataStore();
}
});
...
}
protected int getDefaultHttpPort()
protected ConfigurationPropertiesResolver newConfigurationPropertiesResolver(Integer defaultHttpPort, Integer defaultHttpsPort, String propertiesFilename)
ConfigurationPropertiesResolver.defaultHttpPort - the default http portdefaultHttpsPort - the default https portpropertiesFilename - the properties filenameConfigurationPropertiesResolver.protected int newHttpPort()
protected int getDefaultHttpsPort()
protected int newHttpsPort()
protected void onApplicationConfigurations()
protected void onBeforeApplicationConfigurations()
protected void onDeploymentModeSettings()
protected void onDevelopmentModeSettings()
protected void onGlobalSettings()
protected void onSecuritySettingsPlugin(org.apache.wicket.protocol.http.WebApplication application)
application - the applicationpublic boolean isOnDevelopmentMode()
Copyright © 2010–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.