Package org.apache.wicket.core.util.file

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


  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

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

        velocityPropertiesFile = propsFile;
      }

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

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

    ServletContext context = Mockito.mock(ServletContext.class);
    Mockito.when(context.getResource(Mockito.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

  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

  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

  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

  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

  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

TOP

Related Classes of org.apache.wicket.core.util.file.WebApplicationPath

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.