Package org.candlepin.guice

Examples of org.candlepin.guice.HttpMethodMatcher


     *
     * @return true if the method has an HttpMethod or HttpMethod descendant annotation.
     */
    @Override
    public boolean accept(Class declaring, Method method) {
        return new HttpMethodMatcher().matches(method);
    }
View Full Code Here


    private List<RestApiCall> processClass(Class c) {
        Path a = (Path) c.getAnnotation(Path.class);
        String parentUrl = a.value();
        List<RestApiCall> classApiCalls = new LinkedList<RestApiCall>();
        Matcher<Method> matcher = new HttpMethodMatcher();
        for (Method m : c.getMethods()) {
            if (Modifier.isPublic(m.getModifiers()) && matcher.matches(m)) {
                classApiCalls.add(processMethod(parentUrl, m));
            }
        }
        return classApiCalls;
    }
View Full Code Here

        AuthMethodInterceptorFactory amf = new AuthMethodInterceptorFactory();
        requestInjection(amf);
        authMethodInterceptor = new TestingInterceptor(amf);

        bindInterceptor(Matchers.inPackage(Package.getPackage("org.candlepin.resource")),
            new HttpMethodMatcher(), authMethodInterceptor);

        bind(CertificateRevocationListTask.class);
        // temporary
        bind(IdentityCertServiceAdapter.class).to(
            DefaultIdentityCertServiceAdapter.class);
View Full Code Here

TOP

Related Classes of org.candlepin.guice.HttpMethodMatcher

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.