org.inria.ns.reflex.util.wunit
Class UrlAction

java.lang.Object
  extended by org.inria.ns.reflex.processor.core.AbstractAction
      extended by org.inria.ns.reflex.util.wunit.SubmitAction
          extended by org.inria.ns.reflex.util.wunit.HtmlAction
              extended by org.inria.ns.reflex.util.wunit.UrlAction
All Implemented Interfaces:
Executable, Presentable, NamespaceContextFactory

public class UrlAction
extends HtmlAction

Submit an URL to the client.

Author:
Philippe Poulard

Nested Class Summary
 
Nested classes/interfaces inherited from class org.inria.ns.reflex.processor.core.AbstractAction
AbstractAction.ParameterAdapter, AbstractAction.UselessAction
 
Field Summary
 
Fields inherited from class org.inria.ns.reflex.processor.core.AbstractAction
actions, parent, processorInstance
 
Constructor Summary
UrlAction(String method, Expression url, Expression frame, Node node, AbstractAction parent)
          Create a new URL to submit to a server.
 
Method Summary
 void runAction(DataSet dataSet)
          Send an HTTP request.
 
Methods inherited from class org.inria.ns.reflex.util.wunit.HtmlAction
getDocument, getFrame
 
Methods inherited from class org.inria.ns.reflex.util.wunit.SubmitAction
unmarshal
 
Methods inherited from class org.inria.ns.reflex.processor.core.AbstractAction
addAction, addFallbackAction, createContext, getCanonicalPath, getFallbackAction, getLocalFallbackAction, getLogger, getNamespaceContext, getNode, getParent, recover, recover, removeFallbackAction, reorganize, run, runActions, toPrettyString, toPrettyString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UrlAction

public UrlAction(String method,
                 Expression url,
                 Expression frame,
                 Node node,
                 AbstractAction parent)
Create a new URL to submit to a server.

Parameters:
method - The HTTP method : GET, POST, HEAD or PUT.
url - The target URL.
frame -
node - The XML node used for unmarshalling.
parent - The parent action.
Method Detail

runAction

public void runAction(DataSet dataSet)
               throws ExecutionException,
                      XPathException
Send an HTTP request.

Overrides:
runAction in class AbstractAction
Parameters:
dataSet - The set of datas used when the action is running.
Throws:
ExecutionException - If the action can't be performed.
XPathException