Package rabbit.http

Examples of rabbit.http.MultipartHeader


    }

    /** Write the current MultipartHeader to the buffer.
     */
    private void writeHeader () {
  MultipartHeader h =
      new MultipartHeader (Header.CRLF + "--" + separator);
  Range r = ranges.get (currentRange);
  if (contentType != null)
      h.setHeader ("Content-Type", contentType);
  h.setHeader ("Content-Range", "bytes " + r.getStart () + "-" +
         r.getEnd () + "/" + totalSize);
  buffer.put (h.toString ().getBytes ());
    }
View Full Code Here

TOP

Related Classes of rabbit.http.MultipartHeader

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.