Skip to content

Commit 36b2d95

Browse files
committed
Docs
1 parent 483ec74 commit 36b2d95

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/chem/DownloadChemCompProvider.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ public class DownloadChemCompProvider implements ChemCompProvider {
5050
public static final String DEFAULT_SERVER_URL = "https://files.rcsb.org/ligands/download/";
5151
public static final String DEFAULT_CHEMCOMP_PATHURL_TEMPLATE = "{ccd_id}.cif";
5252

53+
/**
54+
* The base URL to which the full path specified via {@link #setChemCompPathUrlTemplate(String)} is appended.
55+
* It is assumed that it has a trailing slash.
56+
*/
5357
public static String serverBaseUrl = DEFAULT_SERVER_URL;
5458

5559
private static File path;
@@ -92,7 +96,8 @@ public DownloadChemCompProvider(String cacheFilePath) {
9296

9397
/**
9498
* Set the base URL for the location of all chemical component CIF files, to which the chemCompPathUrlTemplate
95-
* is appended, settable in {@link #setChemCompPathUrlTemplate(String)}.
99+
* is appended, settable in {@link #setChemCompPathUrlTemplate(String)}. A trailing slash is appended
100+
* if not present.
96101
*/
97102
public static void setServerBaseUrl(String serverBaseUrl) {
98103
if (!serverBaseUrl.endsWith("/")) {

0 commit comments

Comments
 (0)