Package org.apache.tuscany.sca.binding.feed

Examples of org.apache.tuscany.sca.binding.feed.FeedBinding


    public FeedBinding read(XMLStreamReader reader) throws ContributionReadException {
       
        // Read a <binding.atom> element
        String uri = reader.getAttributeValue(null, "uri");
        FeedBinding binding = factory.createFeedBinding();
        binding.setFeedType("atom_1.0");
        if (uri != null) {
            binding.setURI(uri.trim());
        }
        return binding;
    }
View Full Code Here


    public FeedBinding read(XMLStreamReader reader) throws ContributionReadException {
       
        // Read the <binding.rss> element
        String uri = reader.getAttributeValue(null, "uri");
        FeedBinding binding = factory.createFeedBinding();
        binding.setFeedType("rss_2.0");
        if (uri != null) {
            binding.setURI(uri.trim());
        }
        return binding;
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.binding.feed.FeedBinding

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.