public class ApacheDirectiveRegExpression extends Object
In order to extract the useful information from this that we can use for mapping these params to RHQ configuration properties, we define a series of regular expressions that are designed to work with a space concatenated list of params supplied by Augeas.
In these regular expressions, each capturing group corresponds (in the exact order) to the properties defined in the resource configurations.
| Modifier and Type | Field and Description |
|---|---|
static String |
NUM |
static String |
WORD |
static String |
WS |
static String |
WS_MAN |
| Constructor and Description |
|---|
ApacheDirectiveRegExpression() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
createParams(String params,
String name) |
static DirectiveMapping |
getMappingType(String directiveName)
The properties in the resource configuration share a couple of common
patterns how they map to the augeas tree.
|
static List<String> |
getParams(AugeasNode parentNode)
Parses the parameters of the supplied node and returns a list
of strings, each containing a value for a simple property
corresponding to that parameter.
|
public static final String WORD
public static final String WS
public static final String WS_MAN
public static final String NUM
public static List<String> getParams(AugeasNode parentNode)
A null value means that the parameters for given property was not defined in the configuration file.
parentNode - the node containing the "param" sub nodes to parsepublic static DirectiveMapping getMappingType(String directiveName)
directiveName - the directive to find out the mapping type of.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.