Examples of ResourceModelIssue


Examples of com.sun.jersey.api.model.ResourceModelIssue

        int annotCount = 0;
        for (Annotation a : p.getAnnotations()) {
            if (ParamAnnotationSET.contains(a.annotationType())) {
                annotCount++;
                if (annotCount > 1) {
                    issueList.add(new ResourceModelIssue(
                            source,
                            ImplMessages.AMBIGUOUS_PARAMETER(nameForLogging, paramNameForLogging),
                            false));
                    break;
                }
            }
        }

        final Type t = p.getParameterType();
        if (!isConcreteType(t)) {
            issueList.add(new ResourceModelIssue(
                    source,
                    "Parameter " + paramNameForLogging + " of type " + t + " from " + nameForLogging + " is not resolvable to a concrete type",
                    false));
        }
    }
View Full Code Here

Examples of com.sun.jersey.api.model.ResourceModelIssue

                getDeclaredMethods(ar.getResourceClass()));

        // non-public resource methods
        for (AnnotatedMethod m : declaredMethods.hasMetaAnnotation(HttpMethod.class).
                hasNotAnnotation(Path.class).isNotPublic()) {
            issueList.add(new ResourceModelIssue(ar, ImplMessages.NON_PUB_RES_METHOD(m.getMethod().toGenericString()), false));
        }
        // non-public subres methods
        for (AnnotatedMethod m : declaredMethods.hasMetaAnnotation(HttpMethod.class).
                hasAnnotation(Path.class).isNotPublic()) {
            issueList.add(new ResourceModelIssue(ar, ImplMessages.NON_PUB_SUB_RES_METHOD(m.getMethod().toGenericString()), false));
        }
        // non-public subres locators
        for (AnnotatedMethod m : declaredMethods.hasNotMetaAnnotation(HttpMethod.class).
                hasAnnotation(Path.class).isNotPublic()) {
            issueList.add(new ResourceModelIssue(ar, ImplMessages.NON_PUB_SUB_RES_LOC(m.getMethod().toGenericString()), false));
        }
    }
View Full Code Here

Examples of org.glassfish.jersey.server.model.ResourceModelIssue

     */
    public static List<ResourceModelIssue> getErrorsAsResourceModelIssues(final boolean afterMark) {
        return Lists.transform(Errors.getErrorMessages(afterMark), new Function<Errors.ErrorMessage, ResourceModelIssue>() {
            @Override
            public ResourceModelIssue apply(final Errors.ErrorMessage input) {
                return new ResourceModelIssue(input.getSource(), input.getMessage(), input.getSeverity());
            }
        });
    }
View Full Code Here

Examples of org.glassfish.jersey.server.model.ResourceModelIssue

     */
    public static List<ResourceModelIssue> getErrorsAsResourceModelIssues(final boolean afterMark) {
        return Lists.transform(Errors.getErrorMessages(afterMark), new Function<Errors.ErrorMessage, ResourceModelIssue>() {
            @Override
            public ResourceModelIssue apply(final Errors.ErrorMessage input) {
                return new ResourceModelIssue(input.getSource(), input.getMessage(), input.getSeverity());
            }
        });
    }
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.