Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A resource which will be supplied from an on disk cache (suitable for multiple or large files) for as long as the file on the webserver does not change.  If the webserver becomes unavailable the last used contents of the file will be returned (even if that was in a previous IdP lifetime)

Code Block
languagexml
titleV3.2 and later
<bean id="fileResource" class="net.shibboleth.ext.spring.resource.FileBackedHTTPResource"
      c:client-ref="shibboleth.FileCachingHttpClient"
      c:url="http://example.org/path/to/file.xml" 
      c:backingFile="/var/shibboleth/caches/resourcecache/file.xml"/>
Code Block
languagexml
titlePre V3.2
<bean id="fileResource" class="net.shibboleth.ext.spring.resource.FileBackedHTTPResource"
      c:client-ref="shibboleth.FileCachingHttpClient"
      c:url="http://example.org/path/to/file.xml" 
      c:resource="/var/shibboleth/caches/resourcecache/file.xml"/>