Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mentawai.action
Class LogoutAction  view LogoutAction download LogoutAction.java

java.lang.Object
  extended byorg.mentawai.core.BaseAction
      extended byorg.mentawai.action.LogoutAction
All Implemented Interfaces:
org.mentawai.core.Action, org.mentawai.filter.AuthenticationFree

public class LogoutAction
extends org.mentawai.core.BaseAction
implements org.mentawai.filter.AuthenticationFree

A simple Logout action that can be used fot user logout. This action just calls the session reset() method, to clear the session.


Field Summary
 
Fields inherited from class org.mentawai.core.BaseAction
application, input, loc, output, session
 
Fields inherited from interface org.mentawai.core.Action
ERROR, SUCCESS
 
Constructor Summary
LogoutAction()
           
 
Method Summary
 java.lang.String execute()
          Executes the action, returning a result.
protected  void logout()
          Implements the actual logout.
 
Methods inherited from class org.mentawai.core.BaseAction
addError, addError, addError, addError, addError, addError, addError, addError, addError, addError, addMessage, addMessage, addMessage, addMessage, addMessage, getApplication, getInput, getLocale, getOutput, getSession, setApplication, setInput, setLocale, setMessageContext, setOutput, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogoutAction

public LogoutAction()
Method Detail

logout

protected void logout()
Implements the actual logout. This method simply calls the session reset() method, to clean the session. You may override this method if you want to do other operations when the user logs out.


execute

public java.lang.String execute()
                         throws java.lang.Exception
Description copied from interface: org.mentawai.core.Action
Executes the action, returning a result.

Specified by:
execute in interface org.mentawai.core.Action