org.mentawai.core
Class PojoAction

java.lang.Object
  extended by org.mentawai.core.PojoAction
All Implemented Interfaces:
Action

public class PojoAction
extends java.lang.Object
implements Action

This is just an object that can hold up everything that makes up an action: input, output, session, etc. The purpose of this class is to hold the necessary information of an action that does not extend BaseAction or implement Action. It is a plain object.

Author:
Sergio Oliveira Jr.

Field Summary
static java.lang.String RESULT
           
 
Fields inherited from interface org.mentawai.core.Action
ALREADY, BLOCKED, CREATED, ERROR, INDEX, JSP, LIST, MAIN, NULL, REMOVED, SHOW, SUCCESS, TEST, UPDATED
 
Constructor Summary
PojoAction(java.lang.Object pojo)
           
 
Method Summary
 java.lang.String execute()
           
static Action getAction()
           
 Context getApplication()
          Gets this action application context.
 Context getCookies()
          Gets the cookie context for this action.
static java.util.List<Filter> getFilterStack()
           
 Input getInput()
          Gets the action input.
 java.util.Locale getLocale()
          Gets the use locale for this action.
 Output getOutput()
          Gets the action output.
 java.lang.Object getPojo()
           
 Context getSession()
          Gets this action session context.
 void setApplication(Context context)
          Sets the application context for this action.
 void setCookies(Context context)
          Sets the cookie context for this action.
 void setInput(Input input)
          Sets the input for this action.
 void setLocale(java.util.Locale loc)
          Sets the user locale for this action.
 void setOutput(Output output)
          Sets the output for this action.
 void setSession(Context context)
          Sets the session context for this action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESULT

public static java.lang.String RESULT
Constructor Detail

PojoAction

public PojoAction(java.lang.Object pojo)
Method Detail

getFilterStack

public static java.util.List<Filter> getFilterStack()

getPojo

public java.lang.Object getPojo()

getAction

public static Action getAction()

execute

public java.lang.String execute()
                         throws java.lang.Exception
Throws:
java.lang.Exception

setInput

public void setInput(Input input)
Description copied from interface: Action
Sets the input for this action.

Specified by:
setInput in interface Action
Parameters:
input - the input to be set

setOutput

public void setOutput(Output output)
Description copied from interface: Action
Sets the output for this action.

Specified by:
setOutput in interface Action
Parameters:
output - the output to be set

setSession

public void setSession(Context context)
Description copied from interface: Action
Sets the session context for this action.

Specified by:
setSession in interface Action
Parameters:
context - The context to be set

setApplication

public void setApplication(Context context)
Description copied from interface: Action
Sets the application context for this action.

Specified by:
setApplication in interface Action
Parameters:
context - The context to be set

setCookies

public void setCookies(Context context)
Description copied from interface: Action
Sets the cookie context for this action.

Specified by:
setCookies in interface Action
Parameters:
context - The cookie context to be set

setLocale

public void setLocale(java.util.Locale loc)
Description copied from interface: Action
Sets the user locale for this action.

Specified by:
setLocale in interface Action
Parameters:
loc - The user locale to set.

getInput

public Input getInput()
Description copied from interface: Action
Gets the action input.

Specified by:
getInput in interface Action
Returns:
The action input

getOutput

public Output getOutput()
Description copied from interface: Action
Gets the action output.

Specified by:
getOutput in interface Action
Returns:
The action output

getSession

public Context getSession()
Description copied from interface: Action
Gets this action session context.

Specified by:
getSession in interface Action
Returns:
The session context

getApplication

public Context getApplication()
Description copied from interface: Action
Gets this action application context.

Specified by:
getApplication in interface Action
Returns:
The application context

getCookies

public Context getCookies()
Description copied from interface: Action
Gets the cookie context for this action.

Specified by:
getCookies in interface Action
Returns:
The cookie context

getLocale

public java.util.Locale getLocale()
Description copied from interface: Action
Gets the use locale for this action.

Specified by:
getLocale in interface Action
Returns:
The user locale


Copyright © 2005 Mentawai Team. All Rights Reserved.