|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.markup.html.PackageResourceGuard
public class PackageResourceGuard
Default implementation of IPackageResourceGuard. By default, the
extensions 'properties', 'html', 'class' and 'java' are blocked.
| Constructor Summary | |
|---|---|
PackageResourceGuard()
Construct. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.lang.Class scope,
java.lang.String path)
Whether the package resource that can be reached using the provided parameters may be accessed. |
protected boolean |
acceptAbsolutePath(java.lang.String path)
Whether the provided absolute path is accepted. |
protected boolean |
acceptExtension(java.lang.String extension)
Whether the provided extension is accepted. |
protected java.util.Set |
getBlockedExtensions()
Gets the set of extensions that are not allowed access. |
protected void |
setBlockedExtensions(java.util.Set blockedExtensions)
Sets the set of extensions that are not allowed access. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PackageResourceGuard()
| Method Detail |
|---|
public boolean accept(java.lang.Class scope,
java.lang.String path)
IPackageResourceGuard
accept in interface IPackageResourceGuardscope - This argument will be used to get the class loader for loading
the package resource, and to determine what package it is inpath - The path to the resource
IPackageResourceGuard.accept(java.lang.Class,
java.lang.String)protected boolean acceptAbsolutePath(java.lang.String path)
path - The absolute path, starting from the class root (packages are
seperated with forward slashes instead of dots).
protected boolean acceptExtension(java.lang.String extension)
extension - The extension, starting from the class root (packages are
seperated with forward slashes instead of dots).
protected final java.util.Set getBlockedExtensions()
protected final void setBlockedExtensions(java.util.Set blockedExtensions)
blockedExtensions - Set of extensions that are not allowed access
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||