Package com.mycompany

Source Code of com.mycompany.WicketApplication

package com.mycompany;

import com.mycompany.fileupload.FileManageResourceReference;
import com.mycompany.fileupload.FileUploadResourceReference;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.protocol.http.WebApplication;

/**
* Application object for your web application. If you want to run this application without deploying, run the Start class.
*/
public class WicketApplication extends WebApplication
{
   public static final String BASE_FOLDER = "/tmp/fileUploader";

  /**
   * @see org.apache.wicket.Application#getHomePage()
   */
  @Override
  public Class<? extends WebPage> getHomePage()
  {
    return HomePage.class;
  }

  /**
   * @see org.apache.wicket.Application#init()
   */
  @Override
  public void init()
  {
    super.init();

        mountResource("fileManager", new FileManageResourceReference(BASE_FOLDER));
    mountResource("fileUpload", new FileUploadResourceReference(BASE_FOLDER));
  }
}
TOP

Related Classes of com.mycompany.WicketApplication

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.