Package com.wicketinaction

Source Code of com.wicketinaction.WicketApplication

package com.wicketinaction;

import com.wicketinaction.charts.ChartWebSocketResource;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.protocol.https.HttpsConfig;
import org.apache.wicket.protocol.https.HttpsMapper;

/**
* Application object for your web application. If you want to run this application without deploying, run the Start class.
*/
public class WicketApplication extends WebApplication
{
  @Override
  public Class<HomePage> getHomePage()
  {
    return HomePage.class;
  }

  @Override
  public void init()
  {
    super.init();

    setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), new HttpsConfig()));

    mountPage("/behavior", WebSocketBehaviorDemoPage.class);
    mountPage("/resource", WebSocketResourceDemoPage.class);

    setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), new HttpsConfig()));

    getSharedResources().add(ChartWebSocketResource.NAME, new ChartWebSocketResource());
  }
}
TOP

Related Classes of com.wicketinaction.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.