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

net.contextfw.web.application.remote.ResourceResponse Maven / Gradle / Ivy

package net.contextfw.web.application.remote;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Defines the implementation for custom response to web client.
 * 
 * 

* It should be noted that resource is served outside of page context * so all needed information must be given before hand to implementin class. * The reason for this behavior is that creating the response may take time * and user interaction would be blocked if resource is compiled in page scope. *

* * * @see ResourceBody * */ public interface ResourceResponse { public void serve(HttpServletRequest request, HttpServletResponse response) throws IOException; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy