org.directwebremoting.event.ScriptSessionEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dwr Show documentation
Show all versions of dwr Show documentation
DWR is easy Ajax for Java. It makes it simple to call Java code directly from Javascript.
It gets rid of almost all the boilerplate code between the web browser and your Java code.
This version 4.0.2 works with Jakarta Servlet 4.0.2.
package org.directwebremoting.event;
import java.util.EventObject;
import org.directwebremoting.ScriptSession;
/**
* This is the class representing event notifications for changes to script
* sessions within a web application.
* @author Joe Walker [joe at getahead dot ltd dot uk]
*/
public class ScriptSessionEvent extends EventObject
{
/**
* Construct a session event from the given source.
* @param source The ScriptSession that is being created/destroyed
*/
public ScriptSessionEvent(ScriptSession source)
{
super(source);
}
/**
* Return the session that changed.
* @return The newly created/destroyed ScriptSession
*/
public ScriptSession getSession()
{
return (ScriptSession) super.getSource();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy