Annotation Interface SecureAutoMount
Annotation that is applied to a Wicket Application Class to denote to the auto mount processor that
the Application desires generated code for mounting pages. All pages that are annotated with @AuthroizedInstantiation
and exist in the packagesToScan will have a mount generated. All @MountPath that exist in the packagesToScan will
also have a mount generated.
- Author:
- jsarman
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionAllow the configuration of mime type for auto generated paths of classes that are not an authorized page.Allow the configuration of the root path (not including contextPath) for auto generated paths of classes that are not an authorized page.String[]Allow explicit declaration of packages that should be scanned to generate the code for auto mounts.Allow the configuration of mime type for auto generated paths of classes that are annotated with @AuthorizedInstantiation.Allow the configuration of the root path (not including contextPath) for auto generated paths of classes that are annotated with @AuthorizedInstantiation.
-
Element Details
-
defaultRoot
String defaultRootAllow the configuration of the root path (not including contextPath) for auto generated paths of classes that are not an authorized page.- Returns:
- Configured root for pages not requiring security
- Default:
- ""
-
defaultMimeExtension
String defaultMimeExtensionAllow the configuration of mime type for auto generated paths of classes that are not an authorized page.- Returns:
- default mime type for auto generated paths. Defaults to "html".
- Default:
- "html"
-
secureRoot
String secureRootAllow the configuration of the root path (not including contextPath) for auto generated paths of classes that are annotated with @AuthorizedInstantiation. This includes any class that resides in a package that is also annotated with @AuthorizedInstantiation.- Returns:
- Configured root for pages requiring security. Defaults to "secure".
- Default:
- "secure"
-
secureMimeExtension
String secureMimeExtensionAllow the configuration of mime type for auto generated paths of classes that are annotated with @AuthorizedInstantiation. This includes any class that resides in a package that is also annotated with @AuthorizedInstantiation.- Returns:
- default mime type for auto generated paths. Defaults to "html".
- Default:
- "html"
-
packagesToScan
String[] packagesToScanAllow explicit declaration of packages that should be scanned to generate the code for auto mounts. If not set then the scanned packages are set to the package of the application annotated with @SecureMount as the root package and all packages that are a branch of the root. If packages are explicitly set then .* to end of packages allows the branches to be scanned. If a package is set without the .* then only that package is scanned.- Returns:
- String array of packages that are scanned for auto mounting.
- Default:
- {}
-