Package org.tubo.web

Examples of org.tubo.web.WebConsumer


    public static final String HELLO_NAME_PROPERTY = "HELLO_NAME";
    public static final String HELLO_OUTPUT_PROPERTY = "HELLO_OUTPUT";

    public void execute(FlowContext flowContext) throws TuboException {
        WebConsumer webConsumer = (WebConsumer)flowContext.getItem().getConsumedRawData();

        HttpServletResponse res = webConsumer.getHttpServletResponse();

        try {
            PrintWriter writer = res.getWriter();

            writer.println("Hello Word!!");
View Full Code Here


    protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
        if (log.isTraceEnabled()) log.trace(".service() - start");

        Consumer consumer = consumerManager.getConsumer();
        if (consumer instanceof WebConsumer) {
            WebConsumer webConsumer = (WebConsumer)consumer;
            webConsumer.service(this.getServletConfig(),req, res);
        }
        else {
            // TODO: throw Error
        }
View Full Code Here

TOP

Related Classes of org.tubo.web.WebConsumer

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.