org.apache.velocity.tools.view.context
Interface ViewContext

All Known Implementing Classes:
ChainedContext

public interface ViewContext

Objects implementing this interface are passed to view tools upon initialization by the ServletToolboxManager.

The interface provides view tools in a servlet environment access to relevant context information, like servlet request, servlet context and the velocity context.

Version:
$Id: ViewContext.java,v 1.2 2003/05/28 00:17:16 nbubna Exp $
Author:
Gabe Sidler, Geir Magnusson Jr.

Method Summary
 javax.servlet.http.HttpServletRequest getRequest()
          Returns the instance of HttpServletRequest for this request.
 javax.servlet.http.HttpServletResponse getResponse()
          Returns the instance of HttpServletResponse for this request.
 javax.servlet.ServletContext getServletContext()
          Returns the instance of ServletContext for this request.
 org.apache.velocity.context.Context getVelocityContext()
          Returns a reference to the current Velocity context.
 

Method Detail

getRequest

public javax.servlet.http.HttpServletRequest getRequest()

Returns the instance of HttpServletRequest for this request.


getResponse

public javax.servlet.http.HttpServletResponse getResponse()

Returns the instance of HttpServletResponse for this request.


getServletContext

public javax.servlet.ServletContext getServletContext()

Returns the instance of ServletContext for this request.


getVelocityContext

public org.apache.velocity.context.Context getVelocityContext()

Returns a reference to the current Velocity context.



Copyright (c) 2003 Apache Software Foundation