public class SecuritySettingsPlugin extends Object implements Serializable
SecuritySettingsPlugin you enable the appropriate settings for the
development mode.
SecuritySettingsPlugin is very simple. You only have to add a one
line to the init method:
public class MyApplication extends WebApplication
{
@Override
protected void init()
{
super.init();
new SecuritySettingsPlugin().install(this);
}
}
| Constructor and Description |
|---|
SecuritySettingsPlugin() |
| Modifier and Type | Method and Description |
|---|---|
static SecuritySettingsPlugin |
get()
Returns the
SecuritySettingsPlugin instance that has been installed in the current
Wicket application. |
SecuritySettingsPlugin |
install(org.apache.wicket.protocol.http.WebApplication application)
Install this plugin to the given
WebApplication. |
protected void |
onConfigure(org.apache.wicket.protocol.http.WebApplication application)
Factory method for that can be used to add additional security configuration to this plugin.
|
void |
set(org.apache.wicket.Application app,
SecuritySettingsPlugin plugin)
Sets the specified
SecuritySettingsPlugin in the application metadata. |
public static SecuritySettingsPlugin get()
SecuritySettingsPlugin instance that has been installed in the current
Wicket application. This is a convenience method that only works within a Wicket thread, and
it assumes that install() has already been called.SecuritySettingsPlugin instance that has been installed in the current
Wicket application.IllegalStateException - is thrown if no Wicket application bound to the current thread, or if a
DebugSettingsPlugin has not been installed.public SecuritySettingsPlugin install(org.apache.wicket.protocol.http.WebApplication application)
WebApplication.application - the application to install.protected void onConfigure(org.apache.wicket.protocol.http.WebApplication application)
Overrides should call super.onConfigure().
application - the applicationpublic void set(org.apache.wicket.Application app,
SecuritySettingsPlugin plugin)
SecuritySettingsPlugin in the application metadata.app - the appplugin - the pluginCopyright © 2010–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.