Package com.google.jplurk.validator

Examples of com.google.jplurk.validator.Validation


                logger.debug("add header => name[" + header.key() + "] value[" + header.value() + "]");
                httpMethod.addHeader(header.key(), header.value());
            }
        }

        Validation validation = method.getAnnotation(Validation.class);
        if (validation != null) {
            logger.debug("found @Validation");
            for (Validator v : validation.value()) {
                if (params.containsKey(v.field())) {
                    logger.debug("validate field[" + v.field() + "]");
                    boolean isPass = IValidator.ValidatorUtils.validate(v.validator(), params.get(v.field()));
                    if (!isPass) {
                        throw new PlurkException(
View Full Code Here

TOP

Related Classes of com.google.jplurk.validator.Validation

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.