org.hippoecm.hst.core.container
Interface ValveContext


public interface ValveContext

Context information during invoking valves in a pipeline. This holds the necessary objects to serve a request.

Version:
$Id: ValveContext.java 30357 2011-09-22 10:38:17Z aschrijvers $

Method Summary
 HstContainerConfig getRequestContainerConfig()
          Returns the HstComponent container configuration.
 HstRequestContext getRequestContext()
          Returns the current request context.
 HstComponentWindow getRootComponentRenderingWindow()
           Returns the root HstComponentWindow instance to *render* the current request.
 HstComponentWindow getRootComponentWindow()
          Returns the root HstComponentWindow instance that is used to process the current request.
 javax.servlet.http.HttpServletRequest getServletRequest()
          Returns the current servlet request.
 javax.servlet.http.HttpServletResponse getServletResponse()
          Returns the current servlet response.
 void invokeNext()
          Requests invocation of next possible valve.
 void setRootComponentRenderingWindow(HstComponentWindow rootComponentRenderingWindow)
          Sets the root HstComponentWindow instance to *render* the current request
 void setRootComponentWindow(HstComponentWindow rootComponentWindow)
          Sets the root HstComponentWindow instancethat is used to process the current request.
 

Method Detail

invokeNext

void invokeNext()
                throws ContainerException
Requests invocation of next possible valve.

Throws:
ContainerException

getRequestContainerConfig

HstContainerConfig getRequestContainerConfig()
Returns the HstComponent container configuration.

Returns:

getRequestContext

HstRequestContext getRequestContext()
Returns the current request context.

Returns:

getServletRequest

javax.servlet.http.HttpServletRequest getServletRequest()
Returns the current servlet request.

Returns:

getServletResponse

javax.servlet.http.HttpServletResponse getServletResponse()
Returns the current servlet response.

Returns:

setRootComponentWindow

void setRootComponentWindow(HstComponentWindow rootComponentWindow)
Sets the root HstComponentWindow instancethat is used to process the current request.

Parameters:
rootComponentWindow -

getRootComponentWindow

HstComponentWindow getRootComponentWindow()
Returns the root HstComponentWindow instance that is used to process the current request.

Returns:

setRootComponentRenderingWindow

void setRootComponentRenderingWindow(HstComponentWindow rootComponentRenderingWindow)
Sets the root HstComponentWindow instance to *render* the current request

Parameters:
rootComponentRenderingWindow -

getRootComponentRenderingWindow

HstComponentWindow getRootComponentRenderingWindow()

Returns the root HstComponentWindow instance to *render* the current request. By default, this returns the same HstComponentWindow as getRootComponentWindow(), unless it is explicitly set to a different HstComponentWindow. For example in case when you want to render only a single (or subtree) HstComponent of an entire HstComponent hierarchy.

The rootComponentRenderingWindow must always be a descendant of or the same as getRootComponentWindow()

Returns:


Copyright © 2008-2012 Hippo. All Rights Reserved.