Examples of ServletWebRequest


Examples of org.apache.wicket.protocol.http.servlet.ServletWebRequest

    transferCookies();

    response = new MockHttpServletResponse(request);

    ServletWebRequest servletWebRequest = newServletWebRequest();
    requestCycle = application.createRequestCycle(servletWebRequest,
      newServletWebResponse(servletWebRequest));
    requestCycle.setCleanupFeedbackMessagesOnDetach(false);
    ThreadContext.setRequestCycle(requestCycle);
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.ServletWebRequest

      {
        throw new RuntimeException(e);
      }
    }

    ServletWebRequest webRequest;
    try
    {
      webRequest = (ServletWebRequest)newWebRequestMethod.invoke(application, request,
        request.getFilterPrefix());
    }
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.ServletWebRequest

    {
      // Change the request to a multipart web request so parameters are
      // parsed out correctly
      try
      {
        ServletWebRequest request = (ServletWebRequest)getRequest();
        final WebRequest multipartWebRequest = request.newMultipartWebRequest(getMaxSize(),
          getPage().getId());
        // TODO: Can't this be detected from header?
        getRequestCycle().setRequest(multipartWebRequest);
      }
      catch (final FileUploadException fux)
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.ServletWebRequest

    {
      // Change the request to a multipart web request so parameters are
      // parsed out correctly
      try
      {
        ServletWebRequest request = (ServletWebRequest)getRequest();
        final WebRequest multipartWebRequest = request.newMultipartWebRequest(getMaxSize(),
          getPage().getId());
        // TODO: Can't this be detected from header?
        getRequestCycle().setRequest(multipartWebRequest);
      }
      catch (final FileUploadException fux)
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.ServletWebRequest

    }
    RequestParameters params = new RequestParameters();
    params.setBehaviorId(String.valueOf(index));
    if (request instanceof ServletWebRequest)
    {
      ServletWebRequest swr = (ServletWebRequest)request;
      // If we're coming in with an existing depth, use it. Otherwise,
      // compute from the URL. This provides correct behavior for repeated
      // AJAX requests: If we need to generate a URL within an AJAX
      // request for another one, it needs to be at the same depth as the
      // original AJAX request.
      int urlDepth = swr.getRequestParameters().getUrlDepth();
      params.setUrlDepth(urlDepth > -1 ? urlDepth : swr.getDepthRelativeToWicketHandler());
    }

    final IRequestTarget target = new BehaviorRequestTarget(component.getPage(), component,
      listener, params);
    return encodeUrlFor(target);
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.ServletWebRequest

          response.addCookie(cookie);
        }
      }
    }

    ServletWebRequest servletWebRequest = newServletWebRequest();
    requestCycle = application.createRequestCycle(servletWebRequest,
      newServletWebResponse(servletWebRequest));
    ThreadContext.setRequestCycle(requestCycle);

    if (session == null)
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.ServletWebRequest

  @Override
  public void onRequest()
  {
    RequestCycle requestCycle = RequestCycle.get();
    ServletWebRequest request = (ServletWebRequest)requestCycle.getRequest();

    // Grab a Meteor
    Meteor meteor = Meteor.build(request.getContainerRequest());
    // Add us to the listener list.
    meteor.addListener(this);
    meteor.suspend(-1);

    String uuid = meteor.getAtmosphereResource().uuid();
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.ServletWebRequest

  @Override
  public void onResourceRequested()
  {
    RequestCycle requestCycle = RequestCycle.get();
    ServletWebRequest request = (ServletWebRequest)requestCycle.getRequest();

    // Grab a Meteor
    Meteor meteor = Meteor.build(request.getContainerRequest());
    // Add us to the listener list.
    meteor.addListener(this);

    String transport = request.getHeader(HeaderConfig.X_ATMOSPHERE_TRANSPORT);
    if (HeaderConfig.LONG_POLLING_TRANSPORT.equalsIgnoreCase(transport))
    {
      meteor.suspend(-1, false);
    }
    else
View Full Code Here

Examples of org.apache.wicket.protocol.http.servlet.ServletWebRequest

  @Override
  public void onResourceRequested()
  {
    RequestCycle requestCycle = RequestCycle.get();
    ServletWebRequest request = (ServletWebRequest)requestCycle.getRequest();

    // Grab a Meteor
    Meteor meteor = Meteor.build(request.getContainerRequest());
    // Add us to the listener list.
    meteor.addListener(this);

    String transport = request.getHeader(HeaderConfig.X_ATMOSPHERE_TRANSPORT);
    if (HeaderConfig.LONG_POLLING_TRANSPORT.equalsIgnoreCase(transport))
    {
      meteor.suspend(-1, false);
    }
    else
View Full Code Here

Examples of org.springframework.web.context.request.ServletWebRequest

    assertSupportedAndResult(parameter, pageable, TestUtils.getWebRequest());
  }

  protected void assertSupportedAndResult(MethodParameter parameter, Pageable pageable, HttpServletRequest request)
      throws Exception {
    assertSupportedAndResult(parameter, pageable, new ServletWebRequest(request));
  }
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.