org.apache.commons.latka.http
Class ParametersImpl

java.lang.Object
  extended by org.apache.commons.latka.http.ParametersImpl
All Implemented Interfaces:
Parameters

public class ParametersImpl
extends Object
implements Parameters

An implementation of the Parameters interface that stores the name value pairs as a list of two element string arrays

Version:
$Id: ParametersImpl.java 155424 2005-02-26 13:09:29Z dirkv $
Author:
Morgan Delagrange, dIon Gillard
See Also:
Parameters

Field Summary
protected  List _list
          List of parameters.
 
Constructor Summary
protected ParametersImpl()
          Protected access, parameters can only be copied from request to request.
 
Method Summary
 void addParameter(String paramName, String paramValue)
          Defined in interface
 List getParameters()
          Defined in interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_list

protected List _list
List of parameters. Each element of the list is a String[] with first element parameter name, second element parameter value

Constructor Detail

ParametersImpl

protected ParametersImpl()
Protected access, parameters can only be copied from request to request.

Method Detail

addParameter

public void addParameter(String paramName,
                         String paramValue)
Defined in interface

Specified by:
addParameter in interface Parameters
Parameters:
paramName - parameter name
paramValue - parameter value, or null for an empty value
See Also:
Parameters.addParameter(String,String)

getParameters

public List getParameters()
Defined in interface

Specified by:
getParameters in interface Parameters
Returns:
list of parameters
See Also:
Parameters.getParameters()


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