|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HstComponent
A HstComponent can be invoked by a HstComponent container during three different request lifecycle phases: ACTION, RESOURCE and RENDER. A HstComponent should be implemented to be thread-safe because the HST container create one instance to serve each request.
Method Summary | |
---|---|
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 |
void |
init(javax.servlet.ServletContext servletContext,
ComponentConfiguration componentConfig)
Allows the component to initialize itself |
Method Detail |
---|
void init(javax.servlet.ServletContext servletContext, ComponentConfiguration componentConfig) throws HstComponentException
servletContext
- the servletConfig of the HST container servletcomponentConfig
- the componentConfigBean configuration
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |