org.openxava.actions
Class GoToURLAction

java.lang.Object
  extended by org.openxava.actions.BaseAction
      extended by org.openxava.actions.GoToURLAction
All Implemented Interfaces:
IAction, IChangeModeAction, IForwardAction, IModuleContextAction, IRequestAction

public class GoToURLAction
extends BaseAction
implements IForwardAction

Author:
Javier Paniza

Field Summary
 
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT
 
Constructor Summary
GoToURLAction()
           
 
Method Summary
 void execute()
           
 java.lang.String getForwardURI()
          The URI to go.
 java.lang.String getProperty()
           
 java.lang.String getViewObject()
           
 boolean inNewWindow()
           
 void setProperty(java.lang.String property)
           
 void setViewObject(java.lang.String viewObject)
           
 
Methods inherited from class org.openxava.actions.BaseAction
addActions, addError, addErrors, addInfo, addMessage, addMessages, addWarning, clearActions, executeAfter, executeBefore, getContext, getEnvironment, getErrors, getLocale, getManager, getMessages, getNextMode, getRequest, removeActions, resetDescriptionsCache, returnToPreviousControllers, setContext, setControllers, setDefaultControllers, setEnvironment, setErrors, setMessages, setNextMode, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openxava.actions.IAction
getErrors, getMessages, setEnvironment, setErrors, setMessages
 

Constructor Detail

GoToURLAction

public GoToURLAction()
Method Detail

execute

public void execute()
             throws java.lang.Exception
Specified by:
execute in interface IAction
Throws:
java.lang.Exception

getForwardURI

public java.lang.String getForwardURI()
Description copied from interface: IForwardAction
The URI to go.

If it starts with "http://" or "http://" the action will forward to the absolute URL in internet (since v4m1), if it starts with "javascript:" the corresponding code will executed by the browser (since 4.0.1), otherwise it will forward to a resource inside this application.

Specified by:
getForwardURI in interface IForwardAction

inNewWindow

public boolean inNewWindow()
Specified by:
inNewWindow in interface IForwardAction

getProperty

public java.lang.String getProperty()

setProperty

public void setProperty(java.lang.String property)

getViewObject

public java.lang.String getViewObject()

setViewObject

public void setViewObject(java.lang.String viewObject)