Package com.alibaba.citrus.turbine.support

Examples of com.alibaba.citrus.turbine.support.ContextAdapter


    protected void renderTemplate(String templateName, Context context, TurbineRunDataInternal rundata)
            throws TemplateException, IOException {
        rundata.pushContext(context);

        try {
            templateService.writeTo(templateName, new ContextAdapter(context), rundata.getResponse().getWriter());
        } finally {
            rundata.popContext();
        }
    }
View Full Code Here


    protected void renderTemplate(String templateName, Context context, TurbineRunDataInternal rundata)
            throws TemplateException, IOException {
        rundata.pushContext(context);

        try {
            templateService.writeTo(templateName, new ContextAdapter(context), rundata.getResponse().getWriter());
        } finally {
            rundata.popContext();
        }
    }
View Full Code Here

                    if (templateName != null) {
                        templateName = mappingRuleService.getMappedName(CONTROL_TEMPLATE, templateName);
                    }

                    if (templateName != null) {
                        templateService.writeTo(templateName, new ContextAdapter(contextForControl), rundata
                                .getResponse().getWriter());
                    }
                } finally {
                    rundata.popContext();
                }
View Full Code Here

    protected void renderTemplate(String templateName, Context context, TurbineRunDataInternal rundata)
            throws TemplateException, IOException {
        rundata.pushContext(context);

        try {
            templateService.writeTo(templateName, new ContextAdapter(context), rundata.getResponse().getWriter());
        } finally {
            rundata.popContext();
        }
    }
View Full Code Here

                    if (templateName != null) {
                        templateName = mappingRuleService.getMappedName(CONTROL_TEMPLATE, templateName);
                    }

                    if (templateName != null) {
                        templateService.writeTo(templateName, new ContextAdapter(contextForControl), rundata
                                .getResponse().getWriter());
                    }
                } finally {
                    rundata.popContext();
                }
View Full Code Here

    protected void renderTemplate(String templateName, Context context, TurbineRunDataInternal rundata)
            throws TemplateException, IOException {
        rundata.pushContext(context);

        try {
            templateService.writeTo(templateName, new ContextAdapter(context), rundata.getResponse().getWriter());
        } finally {
            rundata.popContext();
        }
    }
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.turbine.support.ContextAdapter

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.