Package com.gentics.cr.util

Examples of com.gentics.cr.util.CRRequestBuilder


   */
  public void doService(HttpServletRequest request, HttpServletResponse response) throws IOException {
    HashMap<String, Resolvable> objects = new HashMap<String, Resolvable>();
    objects.put("request", new RequestBeanWrapper(request));
    objects.put("session", new HttpSessionWrapper(request.getSession()));
    CRRequestBuilder rB = new CRRequestBuilder(request, crConf);
    //response.setContentType(rB.getContentRepository(this.crConf.getEncoding()).getContentType()+"; charset="+this.crConf.getEncoding());
    container.processService(rB, objects, response.getOutputStream(), new ServletResponseTypeSetter(response));
  }
View Full Code Here


    this.vtl.put("encquery", URLEncoder.encode(query, "UTF-8"));

    HashMap<String, Resolvable> objects = new HashMap<String, Resolvable>();
    objects.put("request", new BeanWrapper(request));
    objects.put("session", new HttpSessionWrapper(request.getSession()));
    CRRequestBuilder myReqBuilder = new CRRequestBuilder(request);
    //response.setContentType(rB.getContentRepository(this.crConf.getEncoding()).getContentType()+"; charset="+this.crConf.getEncoding());
    Collection<CRResolvableBean> coll;
    try {
      response.setContentType(this.contenttype + "; charset=" + this.response_encoding);
      CRRequest req = myReqBuilder.getCRRequest();
      req.setRequestFilter(parsedquery);
      req.set(RequestProcessor.META_RESOLVABLE_KEY, true);
      //DEPLOY OBJECTS TO REQUEST
      for (Iterator<Map.Entry<String, Resolvable>> i = objects.entrySet().iterator(); i.hasNext();) {
        Map.Entry<String, Resolvable> entry = i.next();
View Full Code Here

   * @param stream stream
   * @param responsetypesetter responsetypesetter.
   */
  public final void processService(final CRRequestBuilder reqBuilder, final Map<String, Resolvable> wrappedObjectsToDeploy,
      final OutputStream stream, final IResponseTypeSetter responsetypesetter) {
    CRRequestBuilder myReqBuilder = reqBuilder;
    CRRequest req = myReqBuilder.getCRRequest();
    ContentRepositoryConfig contentRepositoryConfig = myReqBuilder.getContentRepositoryConfig();
    processService(req, contentRepositoryConfig, wrappedObjectsToDeploy, stream, responsetypesetter, myReqBuilder.isDebug());
  }
View Full Code Here

TOP

Related Classes of com.gentics.cr.util.CRRequestBuilder

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.