Package org.apache.wicket.protocol.http

Examples of org.apache.wicket.protocol.http.WebApplication


  public void commonBefore()
  {
    // make sure no leaked threadlocals are present
    ThreadContext.detach();

    WebApplication application = newApplication();
    tester = newWicketTester(application);
  }
View Full Code Here


    }

    String key = req.getHeader("Sec-WebSocket-Key");
    resp.setHeader("Sec-WebSocket-Accept", getWebSocketAccept(key));

    WebApplication application = getApplication();
    // Small hack until the Servlet API provides a way to do this.
    TomcatWebSocketProcessor webSocketHandler = new TomcatWebSocketProcessor(req, application);
    TomcatWebSocketProcessor.TomcatWebSocket tomcatWebSocket = webSocketHandler.new TomcatWebSocket();

    // the request can be a wrapper from application servlet filters
View Full Code Here

   * https://issues.apache.org/jira/browse/WICKET-5560
   */
  @Test
  public void enforceMountsWithCryptoMapper()
  {
      WebApplication app = tester.getApplication();
      app.setRootRequestMapper(new CryptoMapper(app.getRootRequestMapper(), app));
      enforceMounts();
  }
View Full Code Here

   * https://issues.apache.org/jira/browse/WICKET-4123
   */
  @Test
  public void useCustomServletWebRequest()
  {
    WebApplication application = new WebApplication()
    {
      @Override
      public Class<? extends Page> getHomePage()
      {
        return CustomRequestPage.class;
View Full Code Here

   * https://issues.apache.org/jira/browse/WICKET-4123
   */
  @Test
  public void useCustomServletWebRequest()
  {
    WebApplication application = new WebApplication()
    {
      @Override
      public Class<? extends Page> getHomePage()
      {
        return CustomRequestPage.class;
View Full Code Here

  {

    @Override
    protected void configure()
    {
      bind(WebApplication.class).toInstance(new WebApplication()
      {
        @Override
        public Class<? extends Page> getHomePage()
        {
          return null;
View Full Code Here

   * @since 6.0
   */
  protected final AjaxRequestAttributes getAttributes()
  {
    AjaxRequestAttributes attributes = new AjaxRequestAttributes();
    WebApplication application = (WebApplication)getComponent().getApplication();
    AjaxRequestTargetListenerCollection ajaxRequestTargetListeners = application.getAjaxRequestTargetListeners();
    for (AjaxRequestTarget.IListener listener : ajaxRequestTargetListeners)
    {
      if (listener instanceof AjaxRequestTarget.AbstractListener)
      {
        ((AjaxRequestTarget.AbstractListener)listener).updateAjaxAttributes(attributes);
View Full Code Here

   * @see org.apache.wicket.behavior.IBehaviorListener#onRequest()
   */
  @Override
  public final void onRequest()
  {
    WebApplication app = (WebApplication)getComponent().getApplication();
    AjaxRequestTarget target = app.newAjaxRequestTarget(getComponent().getPage());

    RequestCycle requestCycle = RequestCycle.get();
    requestCycle.scheduleRequestHandlerAfterCurrent(target);

    respond(target);
View Full Code Here

  }


  public void testNotSerializeable() throws Exception
  {
    WebApplication app = new WebApplication()
    {
      public Class getHomePage()
      {
        return null;
      }
View Full Code Here

   * @see junit.framework.TestCase#setUp()
   */
  protected void setUp() throws Exception
  {
    person = new Person();
    app = new MockWebApplication(new WebApplication()
    {

      public Class getHomePage()
      {
        return null;
View Full Code Here

TOP

Related Classes of org.apache.wicket.protocol.http.WebApplication

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.