
org.directwebremoting.extend.Handler 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.
The newest version!
package org.directwebremoting.extend;
import java.io.IOException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
/**
* A handler is a very simple servlet that does not differentiate between GET
* and POST, or need complex setup beyond what the container can provide
* @author Joe Walker [joe at getahead dot ltd dot uk]
*/
public interface Handler
{
/**
* Handle a URL request that has been mapped to this Handler
* @param request The HTTP request data
* @param response Where we write the HTTP response data
* @throws IOException If the write process fails
*/
public void handle(HttpServletRequest request, HttpServletResponse response) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy