|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hippoecm.hst.core.component.GenericHstComponent
public class GenericHstComponent
The GenericHstComponent
class provides a default implementation for
the HstComponent
interface.
HstComponentConfiguration
's whose only purpose is layout (markup) and do not have
actual behavior, use this default HstComponent
implementation as their component classname,
see HstComponentInfo.getComponentClassName()
.
A subclass of GenericHstComponent
can override methods, usually
one of the following:
HstComponent
's typically run on multithreaded servers, so take care that a
HstComponent must handle concurrent requests and be careful to synchronize access
to shared resources (in other words, be thread safe, see HstComponent
). Shared resources include in-memory data such as
instance or class variables and external objects such as files, database connections, and network connections.
Field Summary | |
---|---|
static String |
RESOURCE_PATH_BY_RESOURCE_ID
Configuration key for flag whether or not to allow resource path resolving by resourceID as fallback. |
Constructor Summary | |
---|---|
GenericHstComponent()
|
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 |
protected ComponentConfiguration |
getComponentConfiguration()
|
void |
init(javax.servlet.ServletContext servletContext,
ComponentConfiguration componentConfig)
Allows the component to initialize itself |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String RESOURCE_PATH_BY_RESOURCE_ID
Constructor Detail |
---|
public GenericHstComponent()
Method Detail |
---|
public void init(javax.servlet.ServletContext servletContext, ComponentConfiguration componentConfig) throws HstComponentException
HstComponent
init
in interface HstComponent
servletContext
- the servletConfig of the HST container servletcomponentConfig
- the componentConfigBean configuration
HstComponentException
public void destroy() throws HstComponentException
HstComponent
destroy
in interface HstComponent
HstComponentException
public void doAction(HstRequest request, HstResponse response) throws HstComponentException
HstComponent
doAction
in interface HstComponent
HstComponentException
public void doBeforeRender(HstRequest request, HstResponse response) throws HstComponentException
HstComponent
doBeforeRender
in interface HstComponent
HstComponentException
public void doBeforeServeResource(HstRequest request, HstResponse response) throws HstComponentException
HstComponent
doBeforeServeResource
in interface HstComponent
HstComponentException
protected ComponentConfiguration getComponentConfiguration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |