org.hippoecm.hst.core.component
Interface HstComponent

All Known Implementing Classes:
BaseFormHstComponent, BaseHstComponent, GenericHstComponent, GenericPortletPrefsEditor, SimpleDispatcherHstComponent, SpringBridgeHstComponent, StandardContainerComponent

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.

Version:
$Id: HstComponent.java 28929 2011-07-13 09:47:11Z aschrijvers $

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

init

void init(javax.servlet.ServletContext servletContext,
          ComponentConfiguration componentConfig)
          throws HstComponentException
Allows the component to initialize itself

Parameters:
servletContext - the servletConfig of the HST container servlet
componentConfig - the componentConfigBean configuration
Throws:
HstComponentException

doBeforeRender

void doBeforeRender(HstRequest request,
                    HstResponse response)
                    throws HstComponentException
Allows the component to do some business logic processing before rendering

Parameters:
request -
response -
Throws:
HstComponentException

doAction

void doAction(HstRequest request,
              HstResponse response)
              throws HstComponentException
Allows the component to process actions

Parameters:
request -
response -
Throws:
HstComponentException

doBeforeServeResource

void doBeforeServeResource(HstRequest request,
                           HstResponse response)
                           throws HstComponentException
Allows the component to do some business logic processing before serving resource

Parameters:
request -
response -
Throws:
HstComponentException

destroy

void destroy()
             throws HstComponentException
Allows the component to destroy itself

Throws:
HstComponentException


Copyright © 2008-2012 Hippo. All Rights Reserved.