org.apache.excalibur.source
Class AvalonSourceUtil

java.lang.Object
  extended byorg.apache.excalibur.source.AvalonSourceUtil

public abstract class AvalonSourceUtil
extends java.lang.Object

This is a helper class for using the Avalon framework together with the source resolver package.

Version:
$Id: AvalonSourceUtil.java 523657 2007-03-29 09:44:31Z cziegeler $
Author:
Avalon Development Team

Constructor Summary
AvalonSourceUtil()
           
 
Method Summary
static java.lang.String appendParameters(java.lang.String uri, org.apache.avalon.framework.parameters.Parameters parameters)
          Append parameters to the uri.
static SourceParameters createSourceParameters(org.apache.avalon.framework.configuration.Configuration conf)
          Create a new parameters object from the children of the configuration.
static org.apache.avalon.framework.parameters.Parameters getFirstParameters(SourceParameters params)
          Create a Parameters object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvalonSourceUtil

public AvalonSourceUtil()
Method Detail

createSourceParameters

public static SourceParameters createSourceParameters(org.apache.avalon.framework.configuration.Configuration conf)
Create a new parameters object from the children of the configuration. If no children are available null is returned.


getFirstParameters

public static org.apache.avalon.framework.parameters.Parameters getFirstParameters(SourceParameters params)
Create a Parameters object. The first value of each parameter is added to the Parameters object.

Returns:
An Parameters object - if no parameters are defined this is an empty object.

appendParameters

public static java.lang.String appendParameters(java.lang.String uri,
                                                org.apache.avalon.framework.parameters.Parameters parameters)
Append parameters to the uri. Each parameter is appended to the uri with "parameter=value", the parameters are separated by "&".



Copyright © 1997-2007 Apache Software Foundation. All Rights Reserved.