com.fatwire.gst.foundation.controller
Class RenderPageAdapter
java.lang.Object
com.fatwire.gst.foundation.controller.BaseRenderPage
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
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 |
STATUS_HEADER
public static final String STATUS_HEADER
- See Also:
- Constant Field Values
RenderPageAdapter
public RenderPageAdapter(COM.FutureTense.Interfaces.ICS ics)
RenderPageAdapter
public RenderPageAdapter(COM.FutureTense.Interfaces.ICS ics,
WraPathTranslationService pathTranslationService,
WraCoreFieldDao wraCoreFieldDao,
AliasCoreFieldDao aliasCoreFieldDao)
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.