org.openid4java.message
Class ParameterList
java.lang.Object
org.openid4java.message.ParameterList
- All Implemented Interfaces:
- java.io.Serializable
public class ParameterList
- extends java.lang.Object
- implements java.io.Serializable
A list of parameters that are part of an OpenID message. Please note that you can have multiple parameters with
the same name.
- Author:
- Marius Scurtescu, Johnny Bufu
- See Also:
- Serialized Form
Field Summary |
private static org.apache.commons.logging.Log |
_log
|
(package private) java.util.Map |
_parameterMap
|
private static boolean |
DEBUG
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
_log
private static org.apache.commons.logging.Log _log
DEBUG
private static final boolean DEBUG
_parameterMap
java.util.Map _parameterMap
ParameterList
public ParameterList()
ParameterList
public ParameterList(ParameterList that)
ParameterList
public ParameterList(java.util.Map parameterMap)
- Constructs a ParameterList from a Map of parameters, ideally obtained
with ServletRequest.getParameterMap(). The parameter keys and values
must be in URL-decoded format.
- Parameters:
parameterMap
- Map or Map
copyOf
public void copyOf(ParameterList that)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
set
public void set(Parameter parameter)
addParams
public void addParams(ParameterList params)
getParameter
public Parameter getParameter(java.lang.String name)
getParameterValue
public java.lang.String getParameterValue(java.lang.String name)
getParameters
public java.util.List getParameters()
removeParameters
public void removeParameters(java.lang.String name)
hasParameter
public boolean hasParameter(java.lang.String name)
hasParameterPrefix
public boolean hasParameterPrefix(java.lang.String prefix)
createFromQueryString
public static ParameterList createFromQueryString(java.lang.String queryString)
throws MessageException
- Create a parameter list based on a URL encoded HTTP query string.
- Throws:
MessageException
createFromKeyValueForm
public static ParameterList createFromKeyValueForm(java.lang.String keyValueForm)
throws MessageException
- Throws:
MessageException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
- The key-value form encoding of for this ParameterList.
Copyright 2006-2008 Sxip Identity Corporation