public interface HstComponent
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Allows the component to destroy itself
|
void |
doAction(HstRequest request,
HstResponse response)
Allows the component to process actions
|
void |
doBeforeRender(HstRequest request,
HstResponse response)
Allows the component to do some business logic processing before rendering
|
void |
doBeforeServeResource(HstRequest request,
HstResponse response)
Allows the component to do some business logic processing before serving resource
|
default ComponentConfiguration |
getComponentConfiguration()
Returns the ComponentConfiguration for this component or
null
if not implemented by a subclass |
void |
init(javax.servlet.ServletContext servletContext,
ComponentConfiguration componentConfig)
Allows the component to initialize itself
|
default void |
prepareBeforeRender(HstRequest request,
HstResponse response)
This method is invoked before
doBeforeRender(HstRequest, HstResponse) method to give an HstComponent
a chance to prepare any business service invocation(s). |
void init(javax.servlet.ServletContext servletContext, ComponentConfiguration componentConfig) throws HstComponentException
servletContext
- the servletConfig of the HST container servletcomponentConfig
- the componentConfigBean configurationHstComponentException
default void prepareBeforeRender(HstRequest request, HstResponse response) throws HstComponentException
doBeforeRender(HstRequest, HstResponse)
method to give an HstComponent
a chance to prepare any business service invocation(s).
This method can be implemented to prepare business content objects by creating asynchronous jobs in parallel
without having to wait each component's doBeforeRender(HstRequest, HstResponse)
execution sequentially.request
- response
- HstComponentException
void doBeforeRender(HstRequest request, HstResponse response) throws HstComponentException
request
- response
- HstComponentException
void doAction(HstRequest request, HstResponse response) throws HstComponentException
request
- response
- HstComponentException
void doBeforeServeResource(HstRequest request, HstResponse response) throws HstComponentException
request
- response
- HstComponentException
void destroy() throws HstComponentException
HstComponentException
default ComponentConfiguration getComponentConfiguration()
null
if not implemented by a subclassCopyright © 2008–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.