Package org.bedework.util.struts
Class UtilRenderAction
- java.lang.Object
-
- org.apache.struts.action.Action
-
- org.bedework.util.struts.UtilAbstractAction
-
- org.bedework.util.struts.UtilRenderAction
-
- All Implemented Interfaces:
org.bedework.util.logging.Logged,HttpAppLogger
public class UtilRenderAction extends UtilAbstractAction
This class is almost a null class to carry out render actions for applications. The struts redirect loses request parameters so we need to reinstate the action by saving them in the form and using them on the way out.- Author:
- Mike Douglass douglm rpi.edu
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.bedework.util.servlet.HttpAppLogger
HttpAppLogger.LogEntry
-
-
Field Summary
-
Fields inherited from class org.bedework.util.struts.UtilAbstractAction
forwardLoggedOut, isPortlet, requestLogout
-
-
Constructor Summary
Constructors Constructor Description UtilRenderAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentName(Request req)Override this to get the contentName from different sourcesStringgetId()Set the global id to some name for loggingorg.bedework.util.logging.BwLoggergetLogger()StringperformAction(Request request, org.apache.struts.util.MessageResources messages)This is the routine which does the work.-
Methods inherited from class org.bedework.util.struts.UtilAbstractAction
checkConfirmationId, checkLogOut, clearMessages, doPresentation, dumpRequest, execute, getAppVars, getErrorObjAttrName, getErrorObjErrProp, getLogPrefix, getMessage, getMessageObjAttrName, getMessages, getPresentationAttrName, getPresentationState, getReqPar, getReqPars, getReqRes, initPresentationState, isPortletRequest, logOutCleanup, requireConfirmationId, setAppVar, setRefreshInterval, traceConfig
-
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bedework.util.servlet.HttpAppLogger
emitLogEntry, getLogEntry, getSessionId, logInfo, logRequest, logRequestOut, logSessionCounts
-
Methods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, warn
-
-
-
-
Method Detail
-
getId
public String getId()
Description copied from class:UtilAbstractActionSet the global id to some name for logging- Specified by:
getIdin classUtilAbstractAction- Returns:
- String id
-
performAction
public String performAction(Request request, org.apache.struts.util.MessageResources messages) throws Throwable
Description copied from class:UtilAbstractActionThis is the routine which does the work.- Specified by:
performActionin classUtilAbstractAction- Parameters:
request- Provide http request/response and formmessages- Resources- Returns:
- String forward name
- Throws:
Throwable
-
getContentName
public String getContentName(Request req) throws Throwable
Description copied from class:UtilAbstractActionOverride this to get the contentName from different sources- Overrides:
getContentNamein classUtilAbstractAction- Returns:
- String name of content
- Throws:
Throwable
-
getLogger
public org.bedework.util.logging.BwLogger getLogger()
- Specified by:
getLoggerin interfaceorg.bedework.util.logging.Logged- Overrides:
getLoggerin classUtilAbstractAction
-
-