Package org.apache.wicket.markup.html

Examples of org.apache.wicket.markup.html.IPackageResourceGuard


    new ResourceStreamResource(resourceStream).respond(attributes);
  }

  private boolean accept(Class<?> scope, String path)
  {
    IPackageResourceGuard guard = Application.get()
      .getResourceSettings()
      .getPackageResourceGuard();

    return guard.accept(scope, path);
  }
View Full Code Here


   * @param path  resource path
   * @return <code>true<code> if resource access is granted
   */
  private boolean accept(Class<?> scope, String path)
  {
    IPackageResourceGuard guard = ThreadContext.getApplication()
        .getResourceSettings()
        .getPackageResourceGuard();

    return guard.accept(scope, path);
  }
View Full Code Here

   *            resource path
   * @return <code>true<code> if resource access is granted
   */
  protected boolean accept(Class<?> scope, String path)
  {
    IPackageResourceGuard guard = Application.get()
      .getResourceSettings()
      .getPackageResourceGuard();

    return guard.accept(scope, path);
  }
View Full Code Here

   */
  @Override
  protected void init()
  {
    getDebugSettings().setDevelopmentUtilitiesEnabled(true);
    IPackageResourceGuard packageResourceGuard = getResourceSettings().getPackageResourceGuard();
    if (packageResourceGuard instanceof SecurePackageResourceGuard)
    {
      SecurePackageResourceGuard guard = (SecurePackageResourceGuard) packageResourceGuard;
      // allow velocity macros resources
      guard.addPattern("+*.vm");
 
View Full Code Here

   *            resource path
   * @return <code>true<code> if resource access is granted
   */
  private boolean accept(Class<?> scope, String path)
  {
    IPackageResourceGuard guard = ThreadContext.getApplication()
      .getResourceSettings()
      .getPackageResourceGuard();

    return guard.accept(scope, path);
  }
View Full Code Here

    public static void install(final Application app) {

        LessCacheManager cacheManager = new LessCacheManager();
        cacheManager.install(app);

        IPackageResourceGuard resourceGuard = app.getResourceSettings().getPackageResourceGuard();
        if (resourceGuard instanceof SecurePackageResourceGuard) {
            SecurePackageResourceGuard securePackageResourceGuard = (SecurePackageResourceGuard) resourceGuard;
            securePackageResourceGuard.addPattern("+*.less");
        }

View Full Code Here

     * updates the security manager to allow fonts and less files if necessary.
     *
     * @param app The current application
     */
    private static void updateSecurityManager(final Application app) {
        final IPackageResourceGuard packageResourceGuard = app.getResourceSettings().getPackageResourceGuard();

        if (packageResourceGuard instanceof SecurePackageResourceGuard) {
            SecurePackageResourceGuard guard = (SecurePackageResourceGuard) packageResourceGuard;
            guard.addPattern("+*.woff");
            guard.addPattern("+*.eot");
 
View Full Code Here

        // footer (after </body>)
        return new JavaScriptFilteredIntoFooterHeaderResponse(response, "footerJS");
      }
    });

    IPackageResourceGuard guard = getResourceSettings().getPackageResourceGuard();
    if (guard instanceof SecurePackageResourceGuard)
    {
      SecurePackageResourceGuard secureGuard = (SecurePackageResourceGuard) guard;
      secureGuard.addPattern("+org/apache/wicket/merged-resources");
    }
View Full Code Here

   *            resource path
   * @return <code>true<code> if resource access is granted
   */
  protected boolean accept(Class<?> scope, String path)
  {
    IPackageResourceGuard guard = Application.get()
      .getResourceSettings()
      .getPackageResourceGuard();

    return guard.accept(scope, path);
  }
View Full Code Here

   */
  @Override
  protected void init()
  {
    getDebugSettings().setDevelopmentUtilitiesEnabled(true);
    IPackageResourceGuard packageResourceGuard = getResourceSettings().getPackageResourceGuard();
    if (packageResourceGuard instanceof SecurePackageResourceGuard)
    {
      SecurePackageResourceGuard guard = (SecurePackageResourceGuard)packageResourceGuard;
      // allow velocity macros resources
      guard.addPattern("+*.vm");
 
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.IPackageResourceGuard

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.