org.rundeck.api.util
Class ArgsUtil

java.lang.Object
  extended by org.rundeck.api.util.ArgsUtil

public class ArgsUtil
extends Object

Utility class for RunDeck arguments

Author:
Vincent Behar

Constructor Summary
ArgsUtil()
           
 
Method Summary
static String generateArgString(Properties options)
          Generates a RunDeck "argString" representing the given options.
static String generateUrlEncodedArgString(Properties options)
          Generates and url-encode a RunDeck "argString" representing the given options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgsUtil

public ArgsUtil()
Method Detail

generateUrlEncodedArgString

public static String generateUrlEncodedArgString(Properties options)
Generates and url-encode a RunDeck "argString" representing the given options. Format of the argString is "-key1 value1 -key2 'value 2 with spaces'"

Parameters:
options - to be converted
Returns:
an url-encoded string. null if options is null, empty if there are no valid options.
See Also:
generateArgString(Properties)

generateArgString

public static String generateArgString(Properties options)
Generates a RunDeck "argString" representing the given options. Format of the argString is "-key1 value1 -key2 'value 2 with spaces'"

Parameters:
options - to be converted
Returns:
a string. null if options is null, empty if there are no valid options.
See Also:
generateUrlEncodedArgString(Properties)


Copyright © 2011. All Rights Reserved.