com.bigdata.counters.query.URLQueryParam Maven / Gradle / Ivy
package com.bigdata.counters.query;
import java.util.Vector;
/**
* The ordered set of values bound for a URL query parameter.
*
* @author Bryan Thompson
* @version $Id$
*/
public class URLQueryParam {
public final String name;
public final Vector values;
public URLQueryParam(String name, String value) {
if (name == null)
throw new IllegalArgumentException();
this.name = name;
if (value == null) {
this.values = null;
} else {
Vector values = new Vector();
values.add(value);
this.values = values;
}
}
public URLQueryParam(String name, String[] values) {
if (name == null)
throw new IllegalArgumentException();
if (values == null)
throw new IllegalArgumentException();
this.name = name;
Vector tmp = new Vector();
for(String s : values) {
tmp.add(s);
}
this.values = tmp;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy