org.apache.myfaces.extensions.validator.util
Class WebXmlUtils

java.lang.Object
  extended by org.apache.myfaces.extensions.validator.util.WebXmlUtils

public class WebXmlUtils
extends Object

Since:
1.x.1
Author:
Gerhard Petracek

Constructor Summary
WebXmlUtils()
           
 
Method Summary
static String getInitParameter(String key)
          Gets the initialization parameter from WEB.XML using the default prefix and removal of the spaces.
static String getInitParameter(String key, boolean preserveBlanks)
          Gets the initialization parameter from WEB.XML using the default prefix and removal of spaces can be specified.
static String getInitParameter(String prefix, String name)
          Gets the initialization parameter from WEB.XML using the specified prefix and removal of the spaces.
static String getInitParameter(String prefix, String key, boolean preserveBlanks)
          Gets the initialization parameter from WEB.XML using the specified prefix and removal of spaces can be specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebXmlUtils

public WebXmlUtils()
Method Detail

getInitParameter

public static String getInitParameter(String key)
Gets the initialization parameter from WEB.XML using the default prefix and removal of the spaces.

Parameters:
key - the key name of the parameter
Returns:
the value of the initialization parameter, if specified.

getInitParameter

public static String getInitParameter(String prefix,
                                      String name)
Gets the initialization parameter from WEB.XML using the specified prefix and removal of the spaces.

Parameters:
prefix - the prefix of the parameter
name - the name
Returns:
the value of the initialization parameter, if specified.

getInitParameter

public static String getInitParameter(String key,
                                      boolean preserveBlanks)
Gets the initialization parameter from WEB.XML using the default prefix and removal of spaces can be specified.

Parameters:
key - the key name of the parameter
preserveBlanks - should blanks be kept?
Returns:
the value of the initialization parameter, if specified.

getInitParameter

public static String getInitParameter(String prefix,
                                      String key,
                                      boolean preserveBlanks)
Gets the initialization parameter from WEB.XML using the specified prefix and removal of spaces can be specified.

Parameters:
prefix - the prefix of the parameter
key - the key name of the parameter
preserveBlanks - indicates if blanks should be kept
Returns:
the value of the initialization parameter, if specified.


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.