/* Copyright (c) 1999, 2000 Oracle Corporation */
package oracle.jdeveloper.html;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.io.*;
import java.util.*;

/** * A Class class. * <P> * @author Juan Oropeza */
public class HTMLRenderingContext extends Object
{
   public HttpSession          session;
   public HttpServletRequest   request;
   public HttpServletResponse  response;
   public ServletContext       application;
   public PageContext          page;
   public Hashtable            userData = new Hashtable();
      
   /**    * Constructor    */
   public HTMLRenderingContext(PageContext page)
   {
      this.page = page;
      initialize(page.getServletContext(), page.getSession(), (HttpServletRequest) page.getRequest(), (HttpServletResponse) page.getResponse());
   }
      
   public HTMLRenderingContext(ServletContext application, HttpSession session , HttpServletRequest request, HttpServletResponse response)
   {
      initialize(application, session , request, response);
   }
      
   public void  initialize(ServletContext application, HttpSession session , HttpServletRequest request, HttpServletResponse response)
   {
      this.application = application;
      this.session = session;
      this.request = request;
      this.response = response;
   }
}
