org.apache.wicket.markup.html
Interface IPackageResourceGuard

All Known Implementing Classes:
CompressedPackageResource, CSSPackageResource, JavascriptPackageResource, PackageResource, PackageResourceGuard, SecurePackageResourceGuard

public interface IPackageResourceGuard

Guards lazily loaded package resources against unwanted access.

Author:
Eelco Hillenius

Method Summary
 boolean accept(Class<?> scope, String path)
          Whether the package resource that can be reached using the provided parameters may be accessed.
 

Method Detail

accept

boolean accept(Class<?> scope,
               String path)
Whether the package resource that can be reached using the provided parameters may be accessed.

Parameters:
scope - This argument will be used to get the class loader for loading the package resource, and to determine what package it is in
path - The path to the resource
Returns:
True if access is permitted, false otherwise


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.