Package org.apache.wink.server.internal.registry

Examples of org.apache.wink.server.internal.registry.SubResourceInstance


        ResourceInstance resource = result.getResource();
        SubResourceRecord subResourceRecord = subResourceInstance.getRecord();
        UriTemplateMatcher matcher = subResourceInstance.getMatcher();
        String pattern = subResourceRecord.getTemplateProcessor().getPatternString();
        // dispatch to one of the sub-resource methods.
        SubResourceInstance method = null;
        try {
            // if no method is found then a RequestMatchingException exception
            // is thrown
            method = registry.findSubResourceMethod(pattern, subResources, resource, context);
        } catch (WebApplicationException e) {
View Full Code Here


        ResourceInstance resource = result.getResource();
        SubResourceRecord subResourceRecord = subResourceInstance.getRecord();
        UriTemplateMatcher matcher = subResourceInstance.getMatcher();
        String pattern = subResourceRecord.getTemplateProcessor().getPatternString();
        // dispatch to one of the sub-resource methods.
        SubResourceInstance method = null;
        try {
            // if no method is found then a RequestMatchingException exception
            // is thrown
            method = registry.findSubResourceMethod(pattern, subResources, resource, context);
        } catch (WebApplicationException e) {
            // couldn't find a method
            result.setError(e);
            return;
        }

        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

        ResourceInstance resource = result.getResource();
        SubResourceRecord subResourceRecord = subResourceInstance.getRecord();
        UriTemplateMatcher matcher = subResourceInstance.getMatcher();
        String pattern = subResourceRecord.getTemplateProcessor().getPatternString();
        // dispatch to one of the sub-resource methods.
        SubResourceInstance method = null;
        try {
            // if no method is found then a RequestMatchingException exception
            // is thrown
            method = registry.findSubResourceMethod(pattern, subResources, resource, context);
        } catch (WebApplicationException e) {
            // couldn't find a method
            result.setError(e);
            return;
        }

        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

        ResourceInstance resource = result.getResource();
        SubResourceRecord subResourceRecord = subResourceInstance.getRecord();
        UriTemplateMatcher matcher = subResourceInstance.getMatcher();
        String pattern = subResourceRecord.getTemplateProcessor().getPatternString();
        // dispatch to one of the sub-resource methods.
        SubResourceInstance method = null;
        try {
            // if no method is found then a RequestMatchingException exception
            // is thrown
            method = registry.findSubResourceMethod(pattern, subResources, resource, context);
        } catch (WebApplicationException e) {
            // couldn't find a method
            result.setError(e);
            return;
        }

        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); //$NON-NLS-1$
        }
        chain.doChain(context);
    }
View Full Code Here

        SearchResult result = context.getAttribute(SearchResult.class);
        ResourceInstance resource = result.getResource();
        SubResourceRecord subResourceRecord = subResourceInstance.getRecord();
        String pattern = subResourceRecord.getTemplateProcessor().getPatternString();
        // dispatch to one of the sub-resource methods.
        SubResourceInstance method = null;
        try {
            // if no method is found then a RequestMatchingException exception
            // is thrown
            method = registry.findSubResourceMethod(pattern, subResources, resource, context);
        } catch (WebApplicationException e) {
            // couldn't find a method
            result.setError(e);
            return;
        }

        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

TOP

Related Classes of org.apache.wink.server.internal.registry.SubResourceInstance

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.