Package org.mojavemvc.annotations

Examples of org.mojavemvc.annotations.Expects


            if (entityAnnotations.size() > 1) {
                throw new ConfigurationException("action " + method.getName() + " in controller "
                        + className + " has more than one " + Entity.class.getName() + " annotation");
            }
           
            Expects expectsAnn = method.getAnnotation(Expects.class);
            if (expectsAnn == null) {
                throw new ConfigurationException("action " + method.getName() + " in controller "
                        + className + " has an " + Entity.class.getName() + " annotation, but no "
                        + Expects.class.getName() + " exists");
            }
            String contentType = expectsAnn.value();
            EntityMarshaller marshaller = entityMarshallerMap.get(contentType);
            if (marshaller != null) {
                paramMarshaller = marshaller;
            } else {
                logger.error("could not find parameter entity marshaller for content type "
View Full Code Here

TOP

Related Classes of org.mojavemvc.annotations.Expects

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.