com.dtolabs.rundeck.core.execution.workflow.steps.node.impl
Class ScriptURLNodeStepExecutor

java.lang.Object
  extended by com.dtolabs.rundeck.core.execution.workflow.steps.node.impl.ScriptURLNodeStepExecutor
All Implemented Interfaces:
NodeStepExecutor

public class ScriptURLNodeStepExecutor
extends java.lang.Object
implements NodeStepExecutor

ScriptURLNodeStepExecutor is a NodeStepExecutor for executing a script retrieved from a URL.


Field Summary
static int DEFAULT_TIMEOUT
           
static org.apache.log4j.Logger logger
           
static java.lang.String SERVICE_IMPLEMENTATION_NAME
           
static Converter<java.lang.String,java.lang.String> urlPathEncoder
           
static Converter<java.lang.String,java.lang.String> urlQueryEncoder
           
static boolean USE_CACHE
           
 
Constructor Summary
ScriptURLNodeStepExecutor(Framework framework)
           
 
Method Summary
 NodeStepResult executeNodeStep(StepExecutionContext context, NodeStepExecutionItem item, INodeEntry node)
          Execute the step
static java.lang.String expandUrlString(java.lang.String urlString, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> dataContext)
          Expand data references in a URL string, using proper encoding for path and query parts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final org.apache.log4j.Logger logger

SERVICE_IMPLEMENTATION_NAME

public static final java.lang.String SERVICE_IMPLEMENTATION_NAME
See Also:
Constant Field Values

DEFAULT_TIMEOUT

public static final int DEFAULT_TIMEOUT
See Also:
Constant Field Values

USE_CACHE

public static final boolean USE_CACHE
See Also:
Constant Field Values

urlPathEncoder

public static final Converter<java.lang.String,java.lang.String> urlPathEncoder

urlQueryEncoder

public static final Converter<java.lang.String,java.lang.String> urlQueryEncoder
Constructor Detail

ScriptURLNodeStepExecutor

public ScriptURLNodeStepExecutor(Framework framework)
Method Detail

executeNodeStep

public NodeStepResult executeNodeStep(StepExecutionContext context,
                                      NodeStepExecutionItem item,
                                      INodeEntry node)
                               throws NodeStepException
Description copied from interface: NodeStepExecutor
Execute the step

Specified by:
executeNodeStep in interface NodeStepExecutor
Throws:
NodeStepException

expandUrlString

public static java.lang.String expandUrlString(java.lang.String urlString,
                                               java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> dataContext)
Expand data references in a URL string, using proper encoding for path and query parts.