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

org.directwebremoting.servlet.UncacheableUntransformableResponse 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 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.servlet;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import org.directwebremoting.extend.Handler;

/**
 * @author Mike Wilson
 */
public class UncacheableUntransformableResponse extends UncacheableResponse
{
    /* (non-Javadoc)
     * @see org.directwebremoting.servlet.ResponseHandler#handle(org.directwebremoting.extend.Handler, jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse)
     */
    @Override
    public void handle(Handler handler, HttpServletRequest request, HttpServletResponse response)
    {
        super.handle(handler, request, response);
        response.addHeader("Cache-Control", "no-transform");
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy