public class DOMMetadataProvider extends AbstractObservableMetadataProvider implements MetadataProvider
MetadataProvider
implementation that retrieves metadata from a DOM Element
as
supplied by the user.
It is the responsibility of the caller to re-initialize, via AbstractMetadataProvider.initialize()
, if any properties of this
provider are changed.ObservableMetadataProvider.Observer
unmarshallerFactory
Constructor and Description |
---|
DOMMetadataProvider(Element mdElement)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the metadata provider and frees any resources current held by it.
|
protected org.opensaml.xml.XMLObject |
doGetMetadata()
Gets the metadata currently held by the provider.
|
protected void |
doInitialization()
Subclasses should override this method to perform any initialization logic necessary.
|
emitChangeEvent, getObservers
clearDescriptorIndex, doGetEntitiesDescriptor, doGetEntityDescriptor, doGetRole, doGetRole, filterMetadata, getEntitiesDescriptor, getEntitiesDescriptorByName, getEntityDescriptor, getEntityDescriptorById, getEntityDescriptorById, getMetadata, getParserPool, getRole, getRole, initialize, isFailFastInitialization, isInitialized, isValid, releaseMetadataDOM, setFailFastInitialization, setInitialized, setParserPool, unmarshallMetadata
getMetadataFilter, requireValidMetadata, setMetadataFilter, setRequireValidMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntitiesDescriptor, getEntityDescriptor, getMetadata, getMetadataFilter, getRole, getRole, requireValidMetadata, setMetadataFilter, setRequireValidMetadata
public DOMMetadataProvider(Element mdElement)
mdElement
- the metadata elementpublic void destroy()
destroy
in class AbstractObservableMetadataProvider
protected org.opensaml.xml.XMLObject doGetMetadata() throws MetadataProviderException
doGetMetadata
in class AbstractMetadataProvider
MetadataProviderException
- thrown if there is a problem retrieving the metadataprotected void doInitialization() throws MetadataProviderException
doInitialization
in class AbstractMetadataProvider
MetadataProviderException
- thrown if there is a problem initializing the providerCopyright © 1999-2013. All Rights Reserved.