Examples of AtomLink

  • org.jboss.resteasy.links.RESTServiceDiscovery.AtomLink

  • Examples of org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects.AtomLink

            if (!feed.getEntries().isEmpty()) {
                for (AtomEntry entry : feed.getEntries()) {
                    // walk through the entry
                    for (AtomElement element : entry.getElements()) {
                        if (element.getObject() instanceof AtomLink) {
                            AtomLink atomLink = (AtomLink) element.getObject();
                            if (Constants.REL_SELF.equals(atomLink.getRel())) {
                                policyLink = atomLink.getHref();
                            }
                        } else if (element.getObject() instanceof CmisObjectType) {
                            String id = findIdProperty((CmisObjectType) element.getObject());
                            if (policyId.equals(id)) {
                                found = true;
    View Full Code Here

    Examples of org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects.AtomLink

        /**
         * Parses a link tag.
         */
        private static AtomElement parseLink(XMLStreamReader parser) throws Exception {
            QName name = parser.getName();
            AtomLink result = new AtomLink();

            // save attributes
            for (int i = 0; i < parser.getAttributeCount(); i++) {
                if (LINK_REL.equals(parser.getAttributeLocalName(i))) {
                    result.setRel(parser.getAttributeValue(i));
                } else if (LINK_HREF.equals(parser.getAttributeLocalName(i))) {
                    result.setHref(parser.getAttributeValue(i));
                } else if (LINK_TYPE.equals(parser.getAttributeLocalName(i))) {
                    result.setType(parser.getAttributeValue(i));
                }
            }

            // skip enclosed tags, if any
            skip(parser);
    View Full Code Here

    Examples of org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects.AtomLink

        /**
         * Parses a link tag.
         */
        private static AtomElement parseAtomContentSrc(XMLStreamReader parser) throws Exception {
            QName name = parser.getName();
            AtomLink result = new AtomLink();
            result.setRel(LINK_REL_CONTENT);

            // save attributes
            for (int i = 0; i < parser.getAttributeCount(); i++) {
                if (CONTENT_SRC.equals(parser.getAttributeLocalName(i))) {
                    result.setHref(parser.getAttributeValue(i));
                }
            }

            // skip enclosed tags, if any
            skip(parser);
    View Full Code Here

    Examples of org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects.AtomLink

            if (!feed.getEntries().isEmpty()) {
                for (AtomEntry entry : feed.getEntries()) {
                    // walk through the entry
                    for (AtomElement element : entry.getElements()) {
                        if (element.getObject() instanceof AtomLink) {
                            AtomLink atomLink = (AtomLink) element.getObject();
                            if (Constants.REL_SELF.equals(atomLink.getRel())) {
                                policyLink = atomLink.getHref();
                            }
                        } else if (element.getObject() instanceof CmisObjectType) {
                            String id = findIdProperty((CmisObjectType) element.getObject());
                            if (policyId.equals(id)) {
                                found = true;
    View Full Code Here

    Examples of org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects.AtomLink

            if (!feed.getEntries().isEmpty()) {
                for (AtomEntry entry : feed.getEntries()) {
                    // walk through the entry
                    for (AtomElement element : entry.getElements()) {
                        if (element.getObject() instanceof AtomLink) {
                            AtomLink atomLink = (AtomLink) element.getObject();
                            if (Constants.REL_SELF.equals(atomLink.getRel())) {
                                policyLink = atomLink.getHref();
                            }
                        } else if (element.getObject() instanceof CmisObjectType) {
                            String id = findIdProperty((CmisObjectType) element.getObject());
                            if (policyId.equals(id)) {
                                found = true;
    View Full Code Here

    Examples of org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects.AtomLink

        /**
         * Parses a link tag.
         */
        private AtomElement parseLink(XMLStreamReader parser) throws Exception {
            QName name = parser.getName();
            AtomLink result = new AtomLink();

            // save attributes
            for (int i = 0; i < parser.getAttributeCount(); i++) {
                if (LINK_REL.equals(parser.getAttributeLocalName(i))) {
                    result.setRel(parser.getAttributeValue(i));
                } else if (LINK_HREF.equals(parser.getAttributeLocalName(i))) {
                    result.setHref(parser.getAttributeValue(i));
                } else if (LINK_TYPE.equals(parser.getAttributeLocalName(i))) {
                    result.setType(parser.getAttributeValue(i));
                }
            }

            // skip enclosed tags, if any
            skip(parser);
    View Full Code Here

    Examples of org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects.AtomLink

        /**
         * Parses a link tag.
         */
        private AtomElement parseAtomContentSrc(XMLStreamReader parser) throws Exception {
            QName name = parser.getName();
            AtomLink result = new AtomLink();
            result.setRel(LINK_REL_CONTENT);

            // save attributes
            for (int i = 0; i < parser.getAttributeCount(); i++) {
                if (CONTENT_SRC.equals(parser.getAttributeLocalName(i))) {
                    result.setHref(parser.getAttributeValue(i));
                }
            }

            // skip enclosed tags, if any
            skip(parser);
    View Full Code Here

    Examples of org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects.AtomLink

            if (!feed.getEntries().isEmpty()) {
                for (AtomEntry entry : feed.getEntries()) {
                    // walk through the entry
                    for (AtomElement element : entry.getElements()) {
                        if (element.getObject() instanceof AtomLink) {
                            AtomLink atomLink = (AtomLink) element.getObject();
                            if (Constants.REL_SELF.equals(atomLink.getRel())) {
                                policyLink = atomLink.getHref();
                            }
                        } else if (element.getObject() instanceof ObjectData) {
                            String id = findIdProperty((ObjectData) element.getObject());
                            if (policyId.equals(id)) {
                                found = true;
    View Full Code Here

    Examples of org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects.AtomLink

            if (!feed.getEntries().isEmpty()) {
                for (AtomEntry entry : feed.getEntries()) {
                    // walk through the entry
                    for (AtomElement element : entry.getElements()) {
                        if (element.getObject() instanceof AtomLink) {
                            AtomLink atomLink = (AtomLink) element.getObject();
                            if (Constants.REL_SELF.equals(atomLink.getRel())) {
                                policyLink = atomLink.getHref();
                            }
                        } else if (element.getObject() instanceof CmisObjectType) {
                            String id = findIdProperty((CmisObjectType) element.getObject());
                            if (policyId.equals(id)) {
                                found = true;
    View Full Code Here

    Examples of org.apache.wink.common.model.atom.AtomLink

            AtomFeed feed = resource.accept("application/atom+xml").get(AtomFeed.class);
            assertEquals(BlogService.ID, feed.getId());
            assertEquals(BlogService.ID, feed.getTitle().getValue());

            List<AtomLink> expectedLinks = new ArrayList<AtomLink>();
            AtomLink link = new AtomLink();
            link.setHref(BASE_URI + "/blogs/0");
            expectedLinks.add(link);
            link = new AtomLink();
            link.setHref(BASE_URI + "/blogs/1");
            expectedLinks.add(link);
            List<AtomLink> actual = feed.getLinks();
            assertEquals(expectedLinks.size(), actual.size());
            for (int i = 0; i < actual.size(); ++i)
                assertEquals(expectedLinks.get(i).getHref(), actual.get(i).getHref());
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. 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.