001    /*
002     * Copyright 1999-2002,2004 The Apache Software Foundation.
003     * 
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     *      http://www.apache.org/licenses/LICENSE-2.0
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    
017    package org.apache.commons.latka.http;
018    
019    import java.util.List;
020    
021    /**
022     * Create a new set of parameters
023     *
024     * @author Morgan Delagrange
025     * @author <a href=mailto:dion@multitask.com.au">dIon Gillard</a>
026     * @version $Id: Parameters.java 155424 2005-02-26 13:09:29Z dirkv $
027     */
028    public interface Parameters {
029      
030      /**
031       * Add a parameter to the request
032       * 
033       * @param paramName parameter name
034       * @param paramValue parameter value, or null for an empty value
035       */
036      void addParameter(String paramName, String paramValue);
037    
038      /**
039       * Returns a list of all the parameters for the request.
040       * Elements of the list are a String array with the
041       * parameter name as the first value and the parameter value
042       * as the second (can be null).
043       * 
044       * @return all parameters for the request
045       */
046      List getParameters();
047    
048    }