Package org.boris.xlloop

Source Code of org.boris.xlloop.EchoHandler

package org.boris.xlloop;

import org.boris.xlloop.util.XLList;
import org.boris.xlloop.xloper.XLoper;

public class EchoHandler implements IFunctionHandler
{
    private int count;

    public XLoper execute(IFunctionContext context, String name, XLoper[] args) throws RequestException {
        XLList l = new XLList(args);
        l.add(++count);
        return l.toXLoper();
    }

    public boolean hasFunction(String name) {
        return true;
    }
}
TOP

Related Classes of org.boris.xlloop.EchoHandler

TOP
Copyright © 2018 www.massapi.com. 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.