Skip to content

Commit e27acd7

Browse files
committed
Update readme with details of how to disable remote context loading
1 parent 2655d21 commit e27acd7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,16 @@ normally be set correctly. If not, try:
126126
Thread.currentThread().setContextClassLoader(oldContextCL);
127127
}
128128

129+
To disable all remote document fetching, when using the default DocumentLoader, set the
130+
following Java System Property to "true" using:
129131

132+
System.setProperty("com.github.jsonldjava.disallowRemoteContextLoading", "true");
133+
134+
You can also use the constant provided in DocumentLoader for the same purpose:
135+
136+
System.setProperty(DocumentLoader.DISALLOW_REMOTE_CONTEXT_LOADING, "true");
137+
138+
Note that if you override DocumentLoader you should also support this setting for consistency.
130139

131140
### Customizing the Apache HttpClient
132141

@@ -390,6 +399,7 @@ CHANGELOG
390399
### 2015-11-16
391400
* Bump dependencies to latest versions, particularly HTTPClient that is seeing more use on 4.5/4.4 than the 4.2 series that we have used so far
392401
* Performance improvements for serialisation to N-Quads by replacing string append and replace with StringBuilder
402+
* Support setting a system property, com.github.jsonldjava.disallowRemoteContextLoading, to "true" to disable remote context loading.
393403

394404
### 2015-09-30
395405
* Release 0.7.0

0 commit comments

Comments
 (0)