Package ch.entwine.weblounge.common.impl.request

Examples of ch.entwine.weblounge.common.impl.request.SiteRequestWrapper


      // Prepare a request to site resources
      String servletPath = "/weblounge-sites/" + site.getIdentifier();
      String requestPath = renderer.getPath();
      requestPath = requestPath.substring(servletPath.length());
      requestPath = UrlUtils.concat(Site.BUNDLE_PATH, requestPath);
      SiteRequestWrapper siteRequest = new SiteRequestWrapper(request, requestPath, false);

      RequestDispatcher dispatcher = request.getRequestDispatcher(servletPath);
      if (dispatcher == null)
        throw new IllegalStateException("No dispatcher found for site '" + site + "'");
View Full Code Here


    if (httpRequest instanceof SiteRequestWrapper) {
      request = httpRequest;
      response = httpResponse;
      originalRequest = false;
    } else if (httpRequest instanceof WebloungeRequest) {
      request = new SiteRequestWrapper((WebloungeRequest) httpRequest, httpRequest.getPathInfo(), false);
      response = httpResponse;
      originalRequest = false;
    } else {
      WebloungeRequestImpl webloungeRequest = new WebloungeRequestImpl(httpRequest, environment);
      webloungeRequest.init(site);
      webloungeRequest.setUser(securityService.getUser());
      String requestPath = UrlUtils.concat("/site", httpRequest.getPathInfo());
      request = new SiteRequestWrapper(webloungeRequest, requestPath, false);
      response = new WebloungeResponseImpl(httpResponse);
      ((WebloungeResponseImpl) response).setRequest(webloungeRequest);
    }

    // Make sure the resource exists, Jasper will not produce a meaningful error
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.common.impl.request.SiteRequestWrapper

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.