Code example for BasicHeader

0
    private HttpParams params;
     
    private boolean contentConsumed = false;
     
    /** 
     * Creates a new multipart entity containing the given parts. 
     * @param parts The parts to include. 
     * @param params The params of the HttpMethod using this entity. 
     */ 
    public MultipartEntity(Part[] parts, HttpParams params) {      
      if (parts == null) {
          throw new IllegalArgumentException("parts cannot be null");
      } 
      if (params == null) {
          throw new IllegalArgumentException("params cannot be null");
      } 
      this.parts = parts;
      this.params = params;
    } 
     
    public MultipartEntity(Part[] parts) {