Package org.restlet.engine.resource

Examples of org.restlet.engine.resource.VariantInfo


                    if (targetVariant == null) {
                        result = addVariant(result, helperVariant);
                    } else if (helperVariant.includes(targetVariant)) {
                        // Detected a more generic variant, but still consider
                        // the conversion is possible to the target variant.
                        result = addVariant(result, new VariantInfo(
                                targetVariant.getMediaType()));
                    } else if (targetVariant.includes(helperVariant)) {
                        // Detected a more specific variant, but still consider
                        // the conversion is possible to the target variant.
                        result = addVariant(result, helperVariant);
View Full Code Here


                        annoVariants = annotationInfo.getResponseVariants(
                                getMetadataService(), getConverterService());

                        if (annoVariants != null) {
                            for (Variant v : annoVariants) {
                                result.add(new VariantInfo(v, annotationInfo));
                            }
                        }
                    }
                }
            }
View Full Code Here

TOP

Related Classes of org.restlet.engine.resource.VariantInfo

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.