Question about using ResourceBackedMetadataProvider

Yaowen Tu yaowen.tu at gmail.com
Tue Aug 21 21:47:51 EDT 2012


Hi,
I am using the following code to retrieve the metadata file.
FileBackedHttpResource resource = new FileBackedHttpResource( metadataUrl,
metadataFile );
ResourceBackedMetadataProvider metadataProvider = new
ResourceBackedMetadataProvider( new Timer(), resource );
metadataProvider.setParserPool( new BasicParserPool() );
metadataProvider.setRequireValidMetadata( true );
metadataProvider.initialize();

Question 1:
I am not sure how to appropriately set the first parameter when initiate a
ResourceBackedMetadataProvider(Timer timer, Resource resource) object. What
should I do to the Timer? I think my current way is not ideal. Can you give
me some concrete example to show when the Timer is useful?

Quetion 2:
If I do not set anything else, I think the metadataProvider contains some
default time for refresh delay, cache duration, and interval. I assume the
metadataProvider will automatically refresh the local cached metadata file,
is it?

Best,
Yaowen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/dev/attachments/20120821/c8fe30e9/attachment.html 


More information about the dev mailing list