hal/src/zutil/network/http/HttpPage.java

28 lines
813 B
Java
Raw Normal View History

2008-11-14 16:38:36 +00:00
package zutil.network.http;
2009-05-18 12:52:16 +00:00
import java.util.Map;
2008-11-14 16:38:36 +00:00
/**
* This is a interface for a ordinary page for the HttpServer
*
* @author Ziver
*
*/
public interface HttpPage{
/**
* This method has to be implemented for every page.
* This method is called when a client wants a response
* from this specific page.
*
* @param out is the PrintStream to the client
* @param client_info is information about the client
* @param session is session values for the client
* @param cookie is cookie information from the client
* @param request is POST and GET requests from the client
2008-11-14 16:38:36 +00:00
*/
public abstract void respond(HttpPrintStream out,
2009-05-18 12:52:16 +00:00
Map<String,String> client_info,
Map<String,Object> session,
Map<String,String> cookie,
Map<String,String> request);
2008-11-14 16:38:36 +00:00
}