| java.lang.Object wicket.markup.html.PackageResourceGuard
PackageResourceGuard | public class PackageResourceGuard implements IPackageResourceGuard(Code) | | Default implementation of
IPackageResourceGuard . By default, the
extensions 'properties', 'html', 'class' and 'java' are blocked.
author: eelcohillenius |
Method Summary | |
public boolean | accept(Class scope, String path) | protected boolean | acceptAbsolutePath(String path) Whether the provided absolute path is accepted.
Parameters: path - The absolute path, starting from the class root (packages areseperated with forward slashes instead of dots). | protected boolean | acceptExtension(String extension) Whether the provided extension is accepted.
Parameters: extension - The extension, starting from the class root (packages areseperated with forward slashes instead of dots). | final protected Set | getBlockedExtensions() Gets the set of extensions that are not allowed access. | final protected void | setBlockedExtensions(Set blockedExtensions) Sets the set of extensions that are not allowed access. |
PackageResourceGuard | public PackageResourceGuard()(Code) | | Construct.
|
acceptAbsolutePath | protected boolean acceptAbsolutePath(String path)(Code) | | Whether the provided absolute path is accepted.
Parameters: path - The absolute path, starting from the class root (packages areseperated with forward slashes instead of dots). True if accepted, false otherwise. |
acceptExtension | protected boolean acceptExtension(String extension)(Code) | | Whether the provided extension is accepted.
Parameters: extension - The extension, starting from the class root (packages areseperated with forward slashes instead of dots). True if accepted, false otherwise. |
getBlockedExtensions | final protected Set getBlockedExtensions()(Code) | | Gets the set of extensions that are not allowed access.
The set of extensions that are not allowed access |
setBlockedExtensions | final protected void setBlockedExtensions(Set blockedExtensions)(Code) | | Sets the set of extensions that are not allowed access.
Parameters: blockedExtensions - Set of extensions that are not allowed access |
|
|