Package org.apache.abdera.protocol.server.multipart

Examples of org.apache.abdera.protocol.server.multipart.MultipartRelatedCollectionInfo


                   
                    if (collections != null) {
                        for (CollectionInfo ci : collections) {
                            sw.startCollection(ci.getHref(request)).writeTitle(ci.getTitle(request));                           
                            if (ci instanceof MultipartRelatedCollectionInfo) {
                              MultipartRelatedCollectionInfo multipartCi = (MultipartRelatedCollectionInfo) ci;
                              for (Map.Entry<String, String> accept : multipartCi.getAlternateAccepts(request).entrySet()) {
                                sw.startElement(Constants.ACCEPT);
                                if (accept.getValue() != null && accept.getValue().length() > 0) {
                                  sw.writeAttribute(Constants.LN_ALTERNATE, accept.getValue());
                                }
                                sw.writeElementText(accept.getKey()).endElement();
View Full Code Here


                    if (collections != null) {
                        for (CollectionInfo ci : collections) {
                            sw.startCollection(ci.getHref(request)).writeTitle(ci.getTitle(request));
                            if (ci instanceof MultipartRelatedCollectionInfo) {
                                MultipartRelatedCollectionInfo multipartCi = (MultipartRelatedCollectionInfo)ci;
                                for (Map.Entry<String, String> accept : multipartCi.getAlternateAccepts(request)
                                    .entrySet()) {
                                    sw.startElement(Constants.ACCEPT);
                                    if (accept.getValue() != null && accept.getValue().length() > 0) {
                                        sw.writeAttribute(Constants.LN_ALTERNATE, accept.getValue());
                                    }
View Full Code Here

TOP

Related Classes of org.apache.abdera.protocol.server.multipart.MultipartRelatedCollectionInfo

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.