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 (producedMime == null || producedMime.isEmpty()) {
                producedMime =
                    context.getAttribute(ProvidersRegistry.class)
                        .getMessageBodyWriterMediaTypes(result.getClass());
View Full Code Here


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

        saveFoundMethod(result, matcher, method, context);

        // continue the chain to invoke the method
        if (logger.isDebugEnabled()) {
            MethodMetadata metadata = (method == null) ? null : method.getMetadata();
            logger.debug("Found subresource method to invoke: {} ", metadata);
        }
        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.isDebugEnabled()) {
            MethodMetadata metadata =
                (subResourceInstance == null) ? null : subResourceInstance.getMetadata();
            logger.debug("Found subresource locator to invoke: {} ", metadata);
        }
        chain.doChain(context);
View Full Code Here

        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();
                logger.debug("Determining Content-Type from @Produces on method: {}", producedMime);
            }
            if (producedMime == null || producedMime.isEmpty()) {
                producedMime =
                    context.getAttribute(ProvidersRegistry.class)
View Full Code Here

        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();
                logger.debug("Determining Content-Type from @Produces on method: {}", producedMime); //$NON-NLS-1$
            }
            if (producedMime == null || producedMime.isEmpty()) {
                if (result instanceof Response) {
                    Response response = (Response)result;
View Full Code Here

        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

        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

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.