Package org.apache.cocoon.servletservice.util

Examples of org.apache.cocoon.servletservice.util.ServletServiceRequest$Headers


          log("map.get(" + key + ") = " + obj);
      if (obj == null) {
        resp.sendError(404, "Not here: " + e);
        return;
      }
      Headers h = new Headers();
      h = h.mergeMetadata(obj.getMetadata());
      for (Map.Entry<String, List<String>> me : h.getHeaders().entrySet()) {
        for (String v : me.getValue()) {
          resp.setHeader(me.getKey(), v);
        }
      }
      resp.getOutputStream().write(obj.getData());
View Full Code Here


          break;
        os.write(b, 0, len);
      }
      S3Object s3 = new S3Object(os.toByteArray());
      map.put(e, s3);
      Headers h = new Headers();
      @SuppressWarnings("unchecked")
      Enumeration<String> names = req.getHeaderNames();
      for (String n : Collections.list(names))
        h.put(n, req.getHeader(n));
      s3.setMetadata(h.extractMetadata());
      log("put '" + e + "' as: " + s3);
    }
  }
View Full Code Here

                            "A servlet connection can only be used with an available servlet context. [" + this.uri
                                            + "]");
        }

        // prepare request and response objects
        this.request = new ServletServiceRequest(reqUri, CallFrameHelper.getRequest());
        this.response = new ServletServiceResponse();

        if(this.logger.isDebugEnabled()) {
            this.logger.debug("Resolving relative servlet URI " + this.uri.toASCIIString());
        }
View Full Code Here

            IllegalArgumentException iae = new IllegalArgumentException("Can't create a URI using the passed path '"
                    + path + "' and query string '" + queryString + "' values.");
            iae.initCause(e);
            throw iae;
        }
        this.request = new ServletServiceRequest(reqUri, CallFrameHelper.getRequest());
        this.response = new ServletServiceResponse();
    }
View Full Code Here

    protected void setUp() throws Exception {
        super.setUp();
        this.mainContext = new ServletServiceContext();

        request = new ServletServiceRequest(new URI("dummy"), null);
        response = new ServletServiceResponse();

        //creating ServletContexts
        servletAContext = new ServletServiceContext();
        servletBContext = new ServletServiceContext();
View Full Code Here

TOP

Related Classes of org.apache.cocoon.servletservice.util.ServletServiceRequest$Headers

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.