Versions Compared

Key

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

...

Code Block
languagexml
<bean id="MyHTTPClient" classparent="shibboleth.HttpClientFactory"
	p:connectionTimeout="PT30S"
	p:connectionRequestTimeout="PT30S"
	p:socketTimeout="PT30S" />

<bean id="MyResource" class="net.shibboleth.ext.spring.resource.HTTPResource"
	c:client-ref="MyHTTPClient"  
	c:url="http://example.org/path/to/file.xml" />

...

Code Block
languagexml
<bean id="MyHTTPClient" classparent="shibboleth.FileCachingHttpClientFactory"
	p:connectionTimeout="PT30S"
	p:connectionRequestTimeout="PT30S"
	p:socketTimeout="PT30S"
	p:cacheDirectory="%{idp.home}/configcache" />

<bean id="fileResource" class="net.shibboleth.ext.spring.resource.FileBackedHTTPResource"
	c:client-ref="MyHTTPClient"
	c:url="http://example.org/path/to/file.xml" 
	c:backingFile="/var/shibboleth/caches/resourcecache/file.xml"/>