public interface HstComponentInvoker
Modifier and Type | Method and Description |
---|---|
void |
invokeAction(HstContainerConfig requestContainerConfig,
javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse)
Invokes the
HstComponent.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 the
renderpath of the HstComponent . |
void |
invokeServeResource(HstContainerConfig requestContainerConfig,
javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse)
Dispatches to the
serveresourcepath of the HstComponent . |
void invokeAction(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws ContainerException
HstComponent.doAction(org.hippoecm.hst.core.component.HstRequest, HstResponse)
method.requestContainerConfig
- the HstComponent container configurationservletRequest
- the requestservletResponse
- the responseContainerException
void invokePrepareBeforeRender(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws ContainerException
HstComponent.prepareBeforeRender(org.hippoecm.hst.core.component.HstRequest, HstResponse)
method.requestContainerConfig
- the HstComponent container configurationservletRequest
- the requestservletResponse
- the responseContainerException
void invokeBeforeRender(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws ContainerException
HstComponent.doBeforeRender(org.hippoecm.hst.core.component.HstRequest, HstResponse)
method.requestContainerConfig
- the HstComponent container configurationservletRequest
- the requestservletResponse
- the responseContainerException
void invokeRender(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws ContainerException
renderpath
of the HstComponent
.
If the component sets renderpath
dynamically in its
HstComponent.doBeforeRender(org.hippoecm.hst.core.component.HstRequest, HstResponse)
method
by invoking HstResponse.setRenderPath(String)
, then
the HstComponentInvoker will dispatch to the renderpath
which is set by the method.
Otherwise, it retrieves the renderpath
from the component configuration to try dispatching.requestContainerConfig
- the HstComponent container configurationservletRequest
- the requestservletResponse
- the responseContainerException
void invokeBeforeServeResource(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws ContainerException
HstComponent.doBeforeServeResource(org.hippoecm.hst.core.component.HstRequest, HstResponse)
method.requestContainerConfig
- the HstComponent container configurationservletRequest
- the requestservletResponse
- the responseContainerException
void invokeServeResource(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws ContainerException
serveresourcepath
of the HstComponent
.
If the component sets serveresourcepath
dynamically in its
HstComponent.doBeforeServeResource(org.hippoecm.hst.core.component.HstRequest, HstResponse)
method
by invoking HstResponse.setServeResourcePath(String)
, then
the HstComponentInvoker will dispatch to the serveresourcepath
which is set by the method.
Otherwise, it retrieves the serveresourcepath
from the component configuration to try dispatching.
If it cannot find the configuration in the component configuration, then
it will try dispatching to the renderpath
instead.requestContainerConfig
- the HstComponent container configurationservletRequest
- the requestservletResponse
- the responseContainerException
Copyright © 2008–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.