|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.Application
org.apache.wicket.protocol.http.WebApplication
org.wicketstuff.security.WaspWebApplication
org.wicketstuff.security.swarm.SwarmWebApplication
public abstract class SwarmWebApplication
A default webapp. It sets up the strategy and action factories and triggers the hive setup. but you must remember to call super in the init or do your own factory setups.
| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.protocol.http.WebApplication |
|---|
META_INF_RESOURCES |
| Fields inherited from class org.apache.wicket.Application |
|---|
CONFIGURATION |
| Constructor Summary | |
|---|---|
SwarmWebApplication()
|
|
| Method Summary | |
|---|---|
org.wicketstuff.security.actions.WaspActionFactory |
getActionFactory()
|
protected abstract Object |
getHiveKey()
Returns the key to specify the hive. |
org.wicketstuff.security.strategies.StrategyFactory |
getStrategyFactory()
|
protected void |
init()
triggers the setup of the factories and the hive. |
protected void |
setActionFactory(org.wicketstuff.security.actions.WaspActionFactory factory)
Allows the ActionFactory field to be set once. |
protected void |
setStrategyFactory(org.wicketstuff.security.strategies.StrategyFactory factory)
Allows the StrategyFactory field to be set once. |
protected void |
setupActionFactory()
|
protected abstract void |
setUpHive()
Set up a Hive for this Application. |
protected void |
setupStrategyFactory()
|
| Methods inherited from class org.wicketstuff.security.WaspWebApplication |
|---|
newSession, onDestroy |
| Methods inherited from class org.apache.wicket.protocol.http.WebApplication |
|---|
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, newWebRequest, newWebResponse, outputDevelopmentModeWarning, renderXmlDecl, sessionUnbound, setAjaxRequestTargetProvider, setConfigurationType, setServletContext, setWicketFilter, storeBufferedResponse, unmount |
| Methods inherited from class org.apache.wicket.Application |
|---|
configure, createRequestCycle, decorateHeaderResponse, exists, fetchCreateAndSetSession, get, getApplicationKeys, getApplicationListeners, getApplicationSettings, getBehaviorInstantiationListeners, getComponentInitializationListeners, getComponentInstantiationListeners, getComponentOnAfterRenderListeners, getComponentOnConfigureListeners, getComponentPostOnBeforeRenderListeners, getComponentPreOnBeforeRenderListeners, getConverterLocator, getDebugSettings, getExceptionMapperProvider, getExceptionSettings, getFrameworkSettings, getHeaderContributorListenerCollection, getHomePage, getInitializers, getJavaScriptLibrarySettings, getMapperContext, getMarkupIdGenerator, 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, onEvent, setApplicationSettings, setDebugSettings, setExceptionSettings, setFrameworkSettings, setHeaderResponseDecorator, setJavaScriptLibrarySettings, setMarkupIdGenerator, setMarkupSettings, setMetaData, setName, setPageManagerProvider, setPageRendererProvider, setPageSettings, setRequestCycleProvider, setRequestCycleSettings, setRequestLoggerSettings, setResourceSettings, setRootRequestMapper, setSecuritySettings, setSessionStoreProvider, setStoreSettings, usesDeploymentConfig, usesDevelopmentConfig, validateInit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.wicketstuff.security.WaspApplication |
|---|
getLoginPage |
| Constructor Detail |
|---|
public SwarmWebApplication()
| Method Detail |
|---|
protected void setupActionFactory()
setupActionFactory in class org.wicketstuff.security.WaspWebApplicationWaspWebApplication.setupActionFactory()protected final void setActionFactory(org.wicketstuff.security.actions.WaspActionFactory factory)
ActionFactory field to be set once.
factory - the actionfactory
IllegalStateException - if the factory is set more than once.protected void setupStrategyFactory()
setupStrategyFactory in class org.wicketstuff.security.WaspWebApplicationWaspWebApplication.setupStrategyFactory()protected final void setStrategyFactory(org.wicketstuff.security.strategies.StrategyFactory factory)
StrategyFactory field to be set once.
factory - the strategyfactory
IllegalStateException - if the factory is set more than once.protected void init()
init in class org.wicketstuff.security.WaspWebApplicationWaspWebApplication.init()protected abstract void setUpHive()
PolicyFileHiveFactory factory = new PolicyFileHiveFactory();
factory.addPolicyFile("/policy.hive");
HiveMind.registerHive(getHiveKey(), factory);
Note that you must setup the actionfactory before you can setup the hive. Note that
the hive is not automatically unregistered since there is a chance you want to share it with
another webapp. If you want to unregister the hive please do so in the WaspWebApplication.onDestroy()
public org.wicketstuff.security.actions.WaspActionFactory getActionFactory()
WaspApplication.getActionFactory()public org.wicketstuff.security.strategies.StrategyFactory getStrategyFactory()
WaspApplication.getStrategyFactory()protected abstract Object getHiveKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||