org.mentawai.core
Class PojoAction

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

public class PojoAction
extends 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 String RESULT
           
 
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
PojoAction(Object pojo)
           
 
Method Summary
 String execute()
           
static Action getAction()
           
 Context getApplication()
          Gets this action application context.
 Context getCookies()
          Gets the cookie context for this action.
static List<Filter> getFilterStack()
           
 Input getInput()
          Gets the action input.
 Locale getLocale()
          Gets the use locale for this action.
 Output getOutput()
          Gets the action output.
 Object getPojo()
           
 Context getSession()
          Gets this action session context.
 void removeAction()
           
 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(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 String RESULT
Constructor Detail

PojoAction

public PojoAction(Object pojo)
Method Detail

getFilterStack

public static List<Filter> getFilterStack()

removeAction

public void removeAction()

getPojo

public Object getPojo()

getAction

public static Action getAction()

execute

public String execute()
               throws Exception
Throws:
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(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 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 © 2013. All Rights Reserved.