• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk / #6243

10 Feb 2026 05:27PM UTC coverage: 18.192% (-17.5%) from 35.714%
#6243

push

github

web-flow
fix(boxsdkgen): Move assigning default values from builder constructor to `build()` method (box/box-codegen#922) (#1712)

0 of 1677 new or added lines in 569 files covered. (0.0%)

2147 existing lines in 545 files now uncovered.

7388 of 40611 relevant lines covered (18.19%)

0.21 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/box/sdkgen/managers/downloads/DownloadFileHeaders.java
1
package com.box.sdkgen.managers.downloads;
2

3
import static com.box.sdkgen.internal.utils.UtilsManager.mapOf;
4

5
import java.util.Map;
6

7
public class DownloadFileHeaders {
8

9
  /**
10
   * The byte range of the content to download.
11
   *
12
   * <p>The format `bytes={start_byte}-{end_byte}` can be used to specify what section of the file
13
   * to download.
14
   */
15
  public String range;
16

17
  /**
18
   * The URL, and optional password, for the shared link of this item.
19
   *
20
   * <p>This header can be used to access items that have not been explicitly shared with a user.
21
   *
22
   * <p>Use the format `shared_link=[link]` or if a password is required then use
23
   * `shared_link=[link]&amp;shared_link_password=[password]`.
24
   *
25
   * <p>This header can be used on the file or folder shared, as well as on any files or folders
26
   * nested within the item.
27
   */
28
  public String boxapi;
29

30
  /** Extra headers that will be included in the HTTP request. */
31
  public Map<String, String> extraHeaders;
32

33
  public DownloadFileHeaders() {
×
34
    this.extraHeaders = mapOf();
×
35
  }
×
36

37
  protected DownloadFileHeaders(Builder builder) {
×
38
    this.range = builder.range;
×
39
    this.boxapi = builder.boxapi;
×
40
    this.extraHeaders = builder.extraHeaders;
×
41
  }
×
42

43
  public String getRange() {
44
    return range;
×
45
  }
46

47
  public String getBoxapi() {
48
    return boxapi;
×
49
  }
50

51
  public Map<String, String> getExtraHeaders() {
52
    return extraHeaders;
×
53
  }
54

55
  public static class Builder {
56

57
    protected String range;
58

59
    protected String boxapi;
60

61
    protected Map<String, String> extraHeaders;
62

NEW
63
    public Builder() {}
×
64

65
    public Builder range(String range) {
UNCOV
66
      this.range = range;
×
UNCOV
67
      return this;
×
68
    }
69

70
    public Builder boxapi(String boxapi) {
UNCOV
71
      this.boxapi = boxapi;
×
UNCOV
72
      return this;
×
73
    }
74

75
    public Builder extraHeaders(Map<String, String> extraHeaders) {
UNCOV
76
      this.extraHeaders = extraHeaders;
×
UNCOV
77
      return this;
×
78
    }
79

80
    public DownloadFileHeaders build() {
NEW
81
      if (this.extraHeaders == null) {
×
NEW
82
        this.extraHeaders = mapOf();
×
83
      }
84
      return new DownloadFileHeaders(this);
×
85
    }
86
  }
87
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc