com.fatwire.gst.foundation.controller
Class RenderPageAdapter

java.lang.Object
  extended by com.fatwire.gst.foundation.controller.BaseRenderPage
      extended by com.fatwire.gst.foundation.controller.RenderPageAdapter

public class RenderPageAdapter
extends BaseRenderPage

This an adapter so that Controllers and Actions can call the RenderPage logic. The RenderPage logic dispatches the request to the correct asset/template combination based on the path field for a Web Referenceable Asset.

Since:
Jun 10, 2010
Author:
Tony Field, Dolf Dijkstra

Field Summary
static String STATUS_HEADER
           
 
Fields inherited from class com.fatwire.gst.foundation.controller.BaseRenderPage
aliasCoreFieldDao, CALLTEMPLATE_EXCLUDE_VARS, ics, LOG, PACKEDARGS, pathTranslationService, URL_PATH, VIRTUAL_WEBROOT, wraCoreFieldDao
 
Constructor Summary
RenderPageAdapter(COM.FutureTense.Interfaces.ICS ics)
           
RenderPageAdapter(COM.FutureTense.Interfaces.ICS ics, WraPathTranslationService pathTranslationService, WraCoreFieldDao wraCoreFieldDao, AliasCoreFieldDao aliasCoreFieldDao)
           
 
Method Summary
 void doExecute()
           
protected  void handleCSRuntimeException(CSRuntimeException e)
          This method transforms errno values into http status codes and sets them using the X-Fatwire-Status header.
protected  void handleException(Exception e)
           
protected  void renderErrorPage(int code, Exception e)
          Renders the error page.
protected  String sendError(int code, Exception e)
           
 
Methods inherited from class com.fatwire.gst.foundation.controller.BaseRenderPage
callPage, callTemplate, findAndSetP, getCallTemplateArguments, getCallTemplateCallStyle, getWraAndResolveAlias, imposeCallTemplateStyle, massagePackedArgs, recordCompositionalDependencies, renderPage, resolveAssetId, unpackPackedArgs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS_HEADER

public static final String STATUS_HEADER
See Also:
Constant Field Values
Constructor Detail

RenderPageAdapter

public RenderPageAdapter(COM.FutureTense.Interfaces.ICS ics)

RenderPageAdapter

public RenderPageAdapter(COM.FutureTense.Interfaces.ICS ics,
                         WraPathTranslationService pathTranslationService,
                         WraCoreFieldDao wraCoreFieldDao,
                         AliasCoreFieldDao aliasCoreFieldDao)
Method Detail

doExecute

public void doExecute()

handleException

protected void handleException(Exception e)

sendError

protected final String sendError(int code,
                                 Exception e)

renderErrorPage

protected void renderErrorPage(int code,
                               Exception e)
Renders the error page. This method can be overwritten is other elements need to be invoked to render an error page.

Parameters:
code -
e -

handleCSRuntimeException

protected void handleCSRuntimeException(CSRuntimeException e)
This method transforms errno values into http status codes and sets them using the X-Fatwire-Status header.

Only some errnos are handled by this base class.

More info coming soon

Parameters:
e - exception


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.