2011-02-15 19:37:35 +00:00
|
|
|
package zutil.net.http;
|
2008-11-14 16:38:36 +00:00
|
|
|
|
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.
|
|
|
|
|
*
|
2009-02-26 17:10:57 +00:00
|
|
|
* @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
|
|
|
}
|