All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.directwebremoting.webwork.DefaultAjaxDataResult Maven / Gradle / Ivy

Go to download

DWR is easy Ajax for Java. It makes it simple to call Java code directly from Javascript. It gets rid of almost all the boiler plate code between the web browser and your Java code.

The newest version!
package org.directwebremoting.webwork;

/**
 * Default implementation of AjaxDataResult
 * @author Alexandru Popescu
 */
public class DefaultAjaxDataResult implements AjaxDataResult
{
    private Object data;

    /**
     * Sole constructor.
     *
     * @param data the wrapped result object
     */
    public DefaultAjaxDataResult(Object data)
    {
        this.data = data;
    }

    /**
     * @see org.directwebremoting.webwork.AjaxDataResult#getData()
     */
    public Object getData()
    {
        return data;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy