Package com.astamuse.asta4d.web.dispatch.response.provider

Examples of com.astamuse.asta4d.web.dispatch.response.provider.ContentProvider


        @Override
        public void execute(RequestHandlerResultHolder holder) throws Exception {
            List<ContentProvider> cpList = new ArrayList<>();
            Object result;
            ContentProvider cp;
            for (Object handler : requestHandlerList) {
                try {
                    result = AnnotationMethodHelper.invokeMethodForAnnotation(handler, RequestHandler.class);
                } catch (Throwable t) {
                    logger.error(t.getMessage(), t);
                    result = t;
                }
                if (result != null) {
                    cp = ResultTransformerUtil.transform(result, resultTransformerList);
                    cpList.add(cp);
                    if (!cp.isContinuable()) {
                        break;
                    }
                }// result != null
            }// for
            if (cpList.isEmpty()) {
View Full Code Here


        if (result instanceof ContentProvider) {
            return (ContentProvider) result;
        }

        ContentProvider cp = null;
        Object before, after;
        before = result;
        ResultTransformer resultTransformer;
        int size = transformerList.size();
        for (int i = 0; i < size; i++) {
View Full Code Here

        List<ContentProvider> cpList = new ArrayList<>(resultList.size());
        for (Object object : resultList) {
            cpList.add(transform(object, transformerList));
        }

        ContentProvider sp = new SerialProvider(cpList);
        return sp;
    }
View Full Code Here

TOP

Related Classes of com.astamuse.asta4d.web.dispatch.response.provider.ContentProvider

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.