Examples of WebRequest


Examples of org.apache.wicket.request.http.WebRequest

      if (redirectURL == null)
      {
        // No redirect; process the request
        ThreadContext.setApplication(application);

        WebRequest webRequest = application.createWebRequest(httpServletRequest, filterPath);
        WebResponse webResponse = application.createWebResponse(webRequest,
          httpServletResponse);

        RequestCycle requestCycle = application.createRequestCycle(webRequest, webResponse);
        res = processRequestCycle(requestCycle, webResponse, httpServletRequest,
View Full Code Here

Examples of org.apache.wicket.request.http.WebRequest

  {
    String key = getSaveKey(name);

    try
    {
      WebRequest webRequest = getWebRequest();
      Cookie cookie = webRequest.getCookie(key);
      if (log.isDebugEnabled())
      {
        if (cookie != null)
        {
          log.debug("Found Cookie with name=" + key + " and request URI=" +
              webRequest.getUrl().toString());
        }
        else
        {
          log.debug("Unable to find Cookie with name=" + key + " and request URI=" +
              webRequest.getUrl().toString());
        }
      }

      return cookie;
    }
View Full Code Here

Examples of org.apache.wicket.request.http.WebRequest

      if (redirectURL == null)
      {
        // No redirect; process the request
        ThreadContext.setApplication(application);

        WebRequest webRequest = application.createWebRequest(httpServletRequest, filterPath);
        WebResponse webResponse = application.createWebResponse(webRequest,
          httpServletResponse);

        RequestCycle requestCycle = application.createRequestCycle(webRequest, webResponse);
        if (!requestCycle.processRequestAndDetach())
View Full Code Here

Examples of org.apache.wicket.request.http.WebRequest

      {
        servletRequest = factory.getWrapper(servletRequest);
      }
    }

    WebRequest webRequest = newWebRequest(servletRequest, filterPath);

    return webRequest;
  }
View Full Code Here

Examples of org.apache.wicket.request.http.WebRequest

    {
      final RequestCycle cycle = RequestCycle.get();

      if (insert == false)
      {
        WebRequest request = (WebRequest)cycle.getRequest();

        String accept = request.getHeader("HTTP_ACCEPT");
        insert = ((accept == null) || (accept.indexOf(MarkupType.XML_MIME) != -1));
      }

      if (insert)
      {
View Full Code Here

Examples of org.apache.wicket.request.http.WebRequest

     * @return <code>true</code> if the resource data does need to be written,
     *         <code>false</code> otherwise.
     */
    public boolean dataNeedsToBeWritten(Attributes attributes)
    {
      WebRequest request = (WebRequest)attributes.getRequest();
      Time ifModifiedSince = request.getIfModifiedSinceHeader();

      if (ifModifiedSince != null && lastModified != null)
      {
        // [Last-Modified] headers have a maximum precision of one second
        // so we have to truncate the milliseconds part for a proper compare.
View Full Code Here

Examples of org.apache.wicket.request.http.WebRequest

    boolean isAjax = false;

    Request request = requestCycle.getRequest();
    if (request instanceof WebRequest)
    {
      WebRequest webRequest = (WebRequest)request;
      isAjax = webRequest.isAjax();
    }

    return isAjax;
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.bulletinboard.commons.webapp.WebRequest

    return new GetRequest(httpClient, url, "memberlist.php");
  }

  @Override
  protected WebRequest createMemberPageRequest(ID id) {
    WebRequest request = new GetRequest(httpClient, url, "profile.php");

    NameValuePair params[] = {
        new NameValuePair("mode", "viewprofile"),
        new NameValuePair("u", String.valueOf(((MemberID) id)
            .getLongValue())) };
    request.setParameters(params);
    return request;
  }
View Full Code Here

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

            // check for a URL param that overrides caching - useful for testing if this processor is incorrectly
            // caching a page (possibly due to an bad cacheKey).

            BroadleafRequestContext brc = BroadleafRequestContext.getBroadleafRequestContext();
            if (brc != null && brc.getWebRequest() != null) {
                WebRequest request = brc.getWebRequest();
                String disableCachingParam = request.getParameter("disableThymeleafTemplateCaching");
                if ("true".equals(disableCachingParam)) {
                    return false;
                }
            }
        }
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.