Quercus: Env

From Resin 3.0

Revision as of 02:43, 16 May 2006 by Jgagner (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The Env class, com.caucho.quercus.env.Env is the main access to the PHP runtime environment.

The Env class is useful to retreive things from the servlet context. To obtain an instance of the Env class in your module, include it as the first argument of your method. i.e.:

 public Object getrequestattribute(Env env, String attribute) 
     //Env gives you access to the HttpServletRequest and HttpServletResponse objects and a host of other objects
     return env.getRequest().getAttribute(attribute);
Personal tools