Package org.hippoecm.hst.core.container
Interface HstComponentInvoker
-
public interface HstComponentInvoker
HstComponent invoker component. The HstComponent container invokes HstComponents via this invoker.- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
invokeAction(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
Invokes theHstComponent.doAction(org.hippoecm.hst.core.component.HstRequest, HstResponse)
method.void
invokeBeforeRender(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
void
invokeBeforeServeResource(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
void
invokePrepareBeforeRender(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
void
invokeRender(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
Dispatches to therenderpath
of theHstComponent
.void
invokeServeResource(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
Dispatches to theserveresourcepath
of theHstComponent
.
-
-
-
Method Detail
-
invokeAction
void invokeAction(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws ContainerException
Invokes theHstComponent.doAction(org.hippoecm.hst.core.component.HstRequest, HstResponse)
method.- Parameters:
requestContainerConfig
- the HstComponent container configurationservletRequest
- the requestservletResponse
- the response- Throws:
ContainerException
-
invokePrepareBeforeRender
void invokePrepareBeforeRender(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws ContainerException
Invokes theHstComponent.prepareBeforeRender(org.hippoecm.hst.core.component.HstRequest, HstResponse)
method.- Parameters:
requestContainerConfig
- the HstComponent container configurationservletRequest
- the requestservletResponse
- the response- Throws:
ContainerException
-
invokeBeforeRender
void invokeBeforeRender(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws ContainerException
Invokes theHstComponent.doBeforeRender(org.hippoecm.hst.core.component.HstRequest, HstResponse)
method.- Parameters:
requestContainerConfig
- the HstComponent container configurationservletRequest
- the requestservletResponse
- the response- Throws:
ContainerException
-
invokeRender
void invokeRender(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws ContainerException
Dispatches to therenderpath
of theHstComponent
. If the component setsrenderpath
dynamically in itsHstComponent.doBeforeRender(org.hippoecm.hst.core.component.HstRequest, HstResponse)
method by invokingHstResponse.setRenderPath(String)
, then the HstComponentInvoker will dispatch to therenderpath
which is set by the method. Otherwise, it retrieves therenderpath
from the component configuration to try dispatching.- Parameters:
requestContainerConfig
- the HstComponent container configurationservletRequest
- the requestservletResponse
- the response- Throws:
ContainerException
-
invokeBeforeServeResource
void invokeBeforeServeResource(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws ContainerException
Invokes theHstComponent.doBeforeServeResource(org.hippoecm.hst.core.component.HstRequest, HstResponse)
method.- Parameters:
requestContainerConfig
- the HstComponent container configurationservletRequest
- the requestservletResponse
- the response- Throws:
ContainerException
-
invokeServeResource
void invokeServeResource(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws ContainerException
Dispatches to theserveresourcepath
of theHstComponent
. If the component setsserveresourcepath
dynamically in itsHstComponent.doBeforeServeResource(org.hippoecm.hst.core.component.HstRequest, HstResponse)
method by invokingHstResponse.setServeResourcePath(String)
, then the HstComponentInvoker will dispatch to theserveresourcepath
which is set by the method. Otherwise, it retrieves theserveresourcepath
from the component configuration to try dispatching. If it cannot find the configuration in the component configuration, then it will try dispatching to therenderpath
instead.- Parameters:
requestContainerConfig
- the HstComponent container configurationservletRequest
- the requestservletResponse
- the response- Throws:
ContainerException
-
-