Package org.apache.wink.common.internal.registry.metadata

Examples of org.apache.wink.common.internal.registry.metadata.MethodMetadata


        if (responseMediaType == null) {
            Set<MediaType> producedMime = null;
            SearchResult searchResult = context.getAttribute(SearchResult.class);
            if (searchResult != null && searchResult.isFound()) {
                MethodMetadata methodMetadata = searchResult.getMethod().getMetadata();
                producedMime = methodMetadata.getProduces();
                if (debug)
                    logger
                        .trace("Determining Content-Type from @Produces on method: {}", producedMime); //$NON-NLS-1$
            }
            if (producedMime == null || producedMime.isEmpty()) {
View Full Code Here


        }
        result.setFound(true);
        result.setMethod(method);
        // continue the chain to invoke the method
        if (logger.isTraceEnabled()) {
            MethodMetadata metadata = (method == null) ? null : method.getMetadata();
            logger.trace("Found root resource method to invoke: {} ", metadata); //$NON-NLS-1$
        }
        chain.doChain(context);
    }
View Full Code Here

        UriTemplateMatcher matcher = method.getMatcher();
        saveFoundMethod(result, matcher, method, context);

        // continue the chain to invoke the method
        if (logger.isTraceEnabled()) {
            MethodMetadata metadata = (method == null) ? null : method.getMetadata();
            logger.trace("Found subresource method to invoke: {} ", metadata); //$NON-NLS-1$
        }
        chain.doChain(context);
    }
View Full Code Here

        // result.getData().addMatchedUri(matcher.getHead(false));
        saveFoundMethod(result, matcher, subResourceInstance, context);

        // continue the chain to invoke the locator
        if (logger.isTraceEnabled()) {
            MethodMetadata metadata =
                (subResourceInstance == null) ? null : subResourceInstance.getMetadata();
            logger.trace("Found subresource locator to invoke: {} ", metadata); //$NON-NLS-1$
        }
        chain.doChain(context);
View Full Code Here

                for (SubResourceRecord subResourceRecord : record.getSubResourceRecords()) {
                    ++counter;

                    try {
                        MethodMetadata method = subResourceRecord.getMetadata();

                        StringBuilder path = new StringBuilder(resourcePath);
                        if (!resourcePath.endsWith("/")) {
                            path.append("/");
                        }
                        path.append(method.getPath());

                        String httpMethod = method.getHttpMethod();
                        if (httpMethod == null) {
                            httpMethod = "(Sub-Locator)";
                        }

                        String consumes = constructMediaTypeString(method.getConsumes());
                        String produces = constructMediaTypeString(method.getProduces());

                        String methodName = constructMethodString(method.getReflectionMethod());

                        f.format("%n%1$-80s %2$-13s %3$-20s %4$-20s %5$s.%6$s",
                                 path,
                                 httpMethod,
                                 consumes,
View Full Code Here

TOP

Related Classes of org.apache.wink.common.internal.registry.metadata.MethodMetadata

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.