public class BasicRegistryClient extends AbstractRegistryClient<BasicResource>
This class is implemented using an ad-hoc XPath-like mechanism for accumulating items of interest from the SAX stream, while ignoring anything else. It works well, and is fast. However there are certainly other, probably more flexible and better, ways of doing similar things. Probably there are libraries that can help with this sort of thing.
Constructor and Description |
---|
BasicRegistryClient(SoapClient soapClient)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected ContentHandler |
createResourceHandler(ResourceSink<BasicResource> sink)
Returns a SAX ContentHandler which can parse a VOResources
element and feed items of some type R to a ResourceSink object.
|
getEndpoint, getResourceIterator, getResourceList
public BasicRegistryClient(SoapClient soapClient)
soapClient
- object which performs SOAP communicationsprotected ContentHandler createResourceHandler(ResourceSink<BasicResource> sink)
AbstractRegistryClient
createResourceHandler
in class AbstractRegistryClient<BasicResource>
sink
- receiver of resource objectsCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.