SimpleServlets v5.5.0

com.simpleservlets.pageprocessor
Class ParameterList

java.lang.Object
  extended by com.simpleservlets.pageprocessor.ParameterList

public class ParameterList
extends Object

Collects key-value pairs for URL-encoding. Internally, the key and the value are URL-encoded and the required "?" and "&" are used as necessary.

Author:
Paul Hyde

Constructor Summary
ParameterList()
           
ParameterList(String firstKey, int firstValue)
           
ParameterList(String firstKey, Object firstValue)
           
ParameterList(String firstKey, String firstValue)
           
 
Method Summary
 void append(String key, int value)
          Appends a new key-value pair on the end using String.valueOf for conversion of the value.
 void append(String key, Object value)
          Appends a new key-value pair on the end using String.valueOf for conversion of the value.
 void append(String key, String value)
          Appends a new key-value pair on the end.
 String encode()
          Returns the URL encoded string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterList

public ParameterList(String firstKey,
                     String firstValue)

ParameterList

public ParameterList(String firstKey,
                     Object firstValue)

ParameterList

public ParameterList(String firstKey,
                     int firstValue)

ParameterList

public ParameterList()
Method Detail

append

public void append(String key,
                   String value)
Appends a new key-value pair on the end.


append

public void append(String key,
                   int value)
Appends a new key-value pair on the end using String.valueOf for conversion of the value.


append

public void append(String key,
                   Object value)
Appends a new key-value pair on the end using String.valueOf for conversion of the value.


encode

public String encode()
Returns the URL encoded string. Starts with '?'.


SimpleServlets v5.5.0

Copyright © 2001-2007 Programix Incorporated. All rights reserved. SimpleServlets is free and is OSI Certified Open Source Software under the BSD license.