org.mentawai.core
Class ProtectedBaseAction

java.lang.Object
  extended by org.mentawai.core.BaseAction
      extended by org.mentawai.core.ProtectedBaseAction
All Implemented Interfaces:
Action, StickyAction

public abstract class ProtectedBaseAction
extends BaseAction

This class exists solely for the purpose of hidding the protected variables of BaseAction. Some people do not like to work with protected variables, so this class is here so that they can call getSession() instead of using the session protected variable for example. For the sake of offering another option, this class implements the methods: session(), application(), cookies(), etc. Those methods just called the corresponding getSession(), getApplication(), getCookies(), etc.

Author:
Sergio Oliveira

Field Summary
 
Fields inherited from class org.mentawai.core.BaseAction
msgContext
 
Fields inherited from interface org.mentawai.core.Action
ACCESSDENIED, ADD, AJAX, ALREADY, BACK, BLOCKED, CREATED, EDIT, ERROR, EXCEPTION, HTML, INDEX, JSON, JSP, LIST, LOGIN, MAIN, NEXT, NOT_FOUND, NULL, REMOVED, SHOW, STREAM, SUCCESS, TEST, UPDATED, XML
 
Constructor Summary
ProtectedBaseAction()
          Creates a ContextBaseAction.
 
Method Summary
 
Methods inherited from class org.mentawai.core.BaseAction
addError, addError, addError, addError, addError, addError, addError, addError, addError, addError, addError, addError, addMessage, addMessage, addMessage, addMessage, addMessage, addMessage, addMessage, addMessage, addMessage, addMessage, addMessage, addMessage, adhere, ajax, application, commit, commit, cookies, disjoin, execute, findValue, findValue, getApplication, getContextPath, getCookies, getError, getInput, getLocale, getLocalizedText, getLocalizedText, getMessageTokens, getMessageTokens, getOutput, getPrettyURL, getSession, getSessionLocale, getSessionObj, getUserLocale, getUserSession, hasError, init, init, input, isAjaxRequest, isAjaxRequest, isEmpty, isGet, isGet, isLogged, isPost, isPost, isPrettyURL, loc, onRemoved, output, redir, replaceSessionObj, replaceUserSession, rollback, rollback, session, setApplication, setCookies, setInput, setLocale, setMessageContext, setOutput, setSession, setSessionGroup, setSessionGroup, setSessionGroups, setSessionGroups, setSessionLocale, setSessionLocale, setSessionObj, setSessionUser, setUserSession, stream, stream, stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtectedBaseAction

public ProtectedBaseAction()
Creates a ContextBaseAction.



Copyright © 2013. All Rights Reserved.