org.mentawai.jruby
Class RubyAction

java.lang.Object
  extended by org.mentawai.jruby.RubyAction
All Implemented Interfaces:
Action

public class RubyAction
extends Object
implements Action


Field Summary
 
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
RubyAction(long rubyActionId, Object rubyObject, String actionName)
           
 
Method Summary
 String execute()
           
protected  void finalize()
           
static Action getAction()
           
 String getActionName()
           
 Context getApplication()
          Gets this action application context.
 Context getCookies()
          Gets the cookie context for this action.
 Input getInput()
          Gets the action input.
 Locale getLocale()
          Gets the use locale for this action.
 Output getOutput()
          Gets the action output.
 long getRubyActionId()
           
 Object getRubyObject()
           
 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RubyAction

public RubyAction(long rubyActionId,
                  Object rubyObject,
                  String actionName)
Method Detail

removeAction

public void removeAction()

getRubyObject

public Object getRubyObject()

getRubyActionId

public long getRubyActionId()

getAction

public static Action getAction()

getActionName

public String getActionName()

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

finalize

protected void finalize()
Overrides:
finalize in class Object


Copyright © 2013. All Rights Reserved.