org.mentawai.jruby
Class RubyAction

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

public class RubyAction
extends java.lang.Object
implements Action


Field Summary
 
Fields inherited from interface org.mentawai.core.Action
ALREADY, BLOCKED, CREATED, ERROR, INDEX, JSP, LIST, MAIN, NULL, REMOVED, SHOW, SUCCESS, TEST, UPDATED
 
Constructor Summary
RubyAction(long rubyActionId, java.lang.Object rubyObject)
           
 
Method Summary
 java.lang.String execute()
           
protected  void finalize()
           
static Action getAction()
           
 Context getApplication()
          Gets this action application context.
 Context getCookies()
          Gets the cookie context for this action.
 Input getInput()
          Gets the action input.
 java.util.Locale getLocale()
          Gets the use locale for this action.
 Output getOutput()
          Gets the action output.
 long getRubyActionId()
           
 java.lang.Object getRubyObject()
           
 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RubyAction

public RubyAction(long rubyActionId,
                  java.lang.Object rubyObject)
Method Detail

getRubyObject

public java.lang.Object getRubyObject()

getRubyActionId

public long getRubyActionId()

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

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object


Copyright © 2005 Mentawai Team. All Rights Reserved.