Examples of WebApplicationPath


Examples of org.apache.wicket.core.util.file.WebApplicationPath

  protected void internalInit()
  {
    super.internalInit();

    getResourceSettings().getResourceFinders().add(
      new WebApplicationPath(getServletContext(), ""));
    getResourceSettings().getResourceFinders().add(
      new ClassPathResourceFinder(META_INF_RESOURCES));

    // Set default error pages for HTML markup
    getApplicationSettings().setPageExpiredErrorPage(PageExpiredErrorPage.class);
View Full Code Here

Examples of org.apache.wicket.core.util.file.WebApplicationPath

        velocityPropertiesFile = propsFile;
      }

      if (null != propertiesFolder)
      {
        WebApplicationPath webPath = new WebApplicationPath(servletContext,
          propertiesFolder);
        IResourceStream stream = webPath.find(Initializer.class, velocityPropertiesFile);
        InputStream is = null;
        try
        {
          is = stream.getInputStream();
          Properties props = new Properties();
View Full Code Here

Examples of org.apache.wicket.core.util.file.WebApplicationPath

    URL webUrl = new URL("file://dummyFile");

    ServletContext context = Mockito.mock(ServletContext.class);
    Mockito.when(context.getResource(Matchers.any(String.class))).thenReturn(webUrl);

    WebApplicationPath path = new WebApplicationPath(context, "");
    IResourceStream resourceStream = path.find(String.class, "WEB-INF/web.xml");
    assertNull(resourceStream);

    IResourceStream otherResourceStream = path.find(String.class, "any/other/resource");
    assertNotNull(otherResourceStream);

  }
View Full Code Here

Examples of org.apache.wicket.util.file.WebApplicationPath

   *
   * @return resource finder
   */
  protected IResourceFinder getResourceFinder()
  {
    return new WebApplicationPath(getServletContext());
  }
View Full Code Here

Examples of org.apache.wicket.util.file.WebApplicationPath

    this.application.getRequestCycleSettings().setRenderStrategy(
      IRequestCycleSettings.ONE_PASS_RENDER);
    // Don't buffer the response, as this can break ajax tests: see WICKET-1264
    this.application.getRequestCycleSettings().setBufferResponse(false);
    if (this.application.getResourceFinder() == null) {
      this.application.getResourceSettings().setResourceFinder(new WebApplicationPath(context));
    }
    this.application.getPageSettings().setAutomaticMultiWindowSupport(false);

    // Since the purpose of MockWebApplication is singlethreaded
    // programmatic testing it doesn't make much sense to have a
View Full Code Here

Examples of org.apache.wicket.util.file.WebApplicationPath

    // Don't buffer the response, as this can break ajax tests: see WICKET-1264
    this.application.getRequestCycleSettings().setBufferResponse(false);
    if (this.application.getResourceFinder() == null)
    {
      this.application.getResourceSettings().setResourceFinder(
        new WebApplicationPath(context));
    }
    this.application.getPageSettings().setAutomaticMultiWindowSupport(false);

    // Since the purpose of MockWebApplication is singlethreaded
    // programmatic testing it doesn't make much sense to have a
View Full Code Here

Examples of org.apache.wicket.util.file.WebApplicationPath

   *
   * @return resource finder
   */
  protected IResourceFinder getResourceFinder()
  {
    return new WebApplicationPath(getServletContext());
  }
View Full Code Here

Examples of org.apache.wicket.util.file.WebApplicationPath

    return Application.DEVELOPMENT;
  }

  protected IResourceFinder getResourceFinder()
  {
    return new WebApplicationPath(getServletContext());
  }
View Full Code Here

Examples of org.apache.wicket.util.file.WebApplicationPath

   *
   * @return resource finder
   */
  protected IResourceFinder getResourceFinder()
  {
    return new WebApplicationPath(getServletContext());
  }
View Full Code Here

Examples of org.apache.wicket.util.file.WebApplicationPath

   *
   * @return resource finder
   */
  protected IResourceFinder getResourceFinder()
  {
    return new WebApplicationPath(getServletContext());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.