org.hippoecm.hst.core.container
Class HstComponentInvokerImpl

java.lang.Object
  extended by org.hippoecm.hst.core.container.HstComponentInvokerImpl
All Implemented Interfaces:
HstComponentInvoker

public class HstComponentInvokerImpl
extends Object
implements HstComponentInvoker

HstComponentInvokerImpl

Version:
$Id: HstComponentInvokerImpl.java 29904 2011-08-29 07:58:51Z aschrijvers $

Field Summary
protected  String dispatchUrlPrefix
           
protected  String errorRenderPath
           
protected  boolean exceptionThrowable
           
 
Constructor Summary
HstComponentInvokerImpl()
           
 
Method Summary
 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)
          Invokes the HstComponent.doBeforeRender(org.hippoecm.hst.core.component.HstRequest, HstResponse) method.
 void invokeBeforeServeResource(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
          Invokes the HstComponent.doBeforeServeResource(org.hippoecm.hst.core.component.HstRequest, HstResponse) method.
protected  void invokeDispatcher(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, boolean namedDispatching, String dispatchUrl, HstComponentWindow window)
           
 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.
protected  void renderErrorInformation(HstContainerConfig requestContainerConfig, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, HstComponentWindow window)
           
 void setDispatchUrlPrefix(String dispatchUrlPrefix)
           
 void setErrorRenderPath(String errorRenderPath)
           
 void setExceptionThrowable(boolean exceptionThrowable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exceptionThrowable

protected boolean exceptionThrowable

errorRenderPath

protected String errorRenderPath

dispatchUrlPrefix

protected String dispatchUrlPrefix
Constructor Detail

HstComponentInvokerImpl

public HstComponentInvokerImpl()
Method Detail

setExceptionThrowable

public void setExceptionThrowable(boolean exceptionThrowable)

setErrorRenderPath

public void setErrorRenderPath(String errorRenderPath)

setDispatchUrlPrefix

public void setDispatchUrlPrefix(String dispatchUrlPrefix)

invokeAction

public void invokeAction(HstContainerConfig requestContainerConfig,
                         javax.servlet.ServletRequest servletRequest,
                         javax.servlet.ServletResponse servletResponse)
                  throws ContainerException
Description copied from interface: HstComponentInvoker
Invokes the HstComponent.doAction(org.hippoecm.hst.core.component.HstRequest, HstResponse) method.

Specified by:
invokeAction in interface HstComponentInvoker
Parameters:
requestContainerConfig - the HstComponent container configuration
servletRequest - the request
servletResponse - the response
Throws:
ContainerException

invokeBeforeRender

public void invokeBeforeRender(HstContainerConfig requestContainerConfig,
                               javax.servlet.ServletRequest servletRequest,
                               javax.servlet.ServletResponse servletResponse)
                        throws ContainerException
Description copied from interface: HstComponentInvoker
Invokes the HstComponent.doBeforeRender(org.hippoecm.hst.core.component.HstRequest, HstResponse) method.

Specified by:
invokeBeforeRender in interface HstComponentInvoker
Parameters:
requestContainerConfig - the HstComponent container configuration
servletRequest - the request
servletResponse - the response
Throws:
ContainerException

invokeRender

public void invokeRender(HstContainerConfig requestContainerConfig,
                         javax.servlet.ServletRequest servletRequest,
                         javax.servlet.ServletResponse servletResponse)
                  throws ContainerException
Description copied from interface: HstComponentInvoker
Dispatches to the 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.

Specified by:
invokeRender in interface HstComponentInvoker
Parameters:
requestContainerConfig - the HstComponent container configuration
servletRequest - the request
servletResponse - the response
Throws:
ContainerException

invokeBeforeServeResource

public void invokeBeforeServeResource(HstContainerConfig requestContainerConfig,
                                      javax.servlet.ServletRequest servletRequest,
                                      javax.servlet.ServletResponse servletResponse)
                               throws ContainerException
Description copied from interface: HstComponentInvoker
Invokes the HstComponent.doBeforeServeResource(org.hippoecm.hst.core.component.HstRequest, HstResponse) method.

Specified by:
invokeBeforeServeResource in interface HstComponentInvoker
Parameters:
requestContainerConfig - the HstComponent container configuration
servletRequest - the request
servletResponse - the response
Throws:
ContainerException

invokeServeResource

public void invokeServeResource(HstContainerConfig requestContainerConfig,
                                javax.servlet.ServletRequest servletRequest,
                                javax.servlet.ServletResponse servletResponse)
                         throws ContainerException
Description copied from interface: HstComponentInvoker
Dispatches to the 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.

Specified by:
invokeServeResource in interface HstComponentInvoker
Parameters:
requestContainerConfig - the HstComponent container configuration
servletRequest - the request
servletResponse - the response
Throws:
ContainerException

invokeDispatcher

protected void invokeDispatcher(HstContainerConfig requestContainerConfig,
                                javax.servlet.ServletRequest servletRequest,
                                javax.servlet.ServletResponse servletResponse,
                                boolean namedDispatching,
                                String dispatchUrl,
                                HstComponentWindow window)
                         throws Exception
Throws:
Exception

renderErrorInformation

protected void renderErrorInformation(HstContainerConfig requestContainerConfig,
                                      javax.servlet.ServletRequest servletRequest,
                                      javax.servlet.ServletResponse servletResponse,
                                      HstComponentWindow window)


Copyright © 2008-2012 Hippo. All Rights Reserved.