|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectorg.xlightweb.MultivalueMap
public class MultivalueMap
A multivalue map
| Constructor Summary | |
|---|---|
MultivalueMap(BodyDataSource bodyDataSource)
constructo r |
|
MultivalueMap(NameValuePair... decodedFormParameters)
constructor |
|
MultivalueMap(NameValuePair decodedFormParameter)
constructor |
|
MultivalueMap(String encoding)
constructor |
|
MultivalueMap(String encoding,
NameValuePair... decodedFormParameters)
constructor |
|
MultivalueMap(String encoding,
String... decodedFormParameters)
constructor |
|
MultivalueMap(String encoding,
String serialized)
constructor |
|
| Method Summary | |
|---|---|
void |
addParameter(String name,
String value)
adds an parameter |
Boolean |
getBooleanParameter(String name)
returns the first parameter value |
boolean |
getBooleanParameter(String name,
boolean defaultVal)
returns the first parameter value |
Double |
getDoubleParameter(String name)
returns the first parameter value |
double |
getDoubleParameter(String name,
double defaultVal)
returns the first parameter value |
Float |
getFloatParameter(String name)
returns the first parameter value |
float |
getFloatParameter(String name,
float defaultVal)
returns the first parameter value |
Integer |
getIntParameter(String name)
returns the first parameter value |
int |
getIntParameter(String name,
int defaultVal)
returns the first parameter value |
Long |
getLongParameter(String name)
returns the first parameter value |
long |
getLongParameter(String name,
long defaultVal)
returns the first parameter value |
String |
getParameter(String name)
returns the first parameter value |
Set<String> |
getParameterNameSet()
returns the parameter name set |
String[] |
getParameterValues(String name)
returns the parameter values |
void |
removeParameter(String name)
remove a parameter |
void |
setParameter(String name,
String value)
sets a parameter. |
String |
toString()
returns the serialized representation of the map (mime type application/x-www-form-urlencoded) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultivalueMap(NameValuePair decodedFormParameter)
decodedFormParameter - the decoded form parameterspublic MultivalueMap(String encoding)
encoding - the encoding to usedecodedFormParameter - the decoded form parameterspublic MultivalueMap(NameValuePair... decodedFormParameters)
decodedFormParameters - the decoded form parameters
public MultivalueMap(String encoding,
NameValuePair... decodedFormParameters)
encoding - the encoding to usedecodedFormParameters - the decoded form parameters
public MultivalueMap(BodyDataSource bodyDataSource)
throws IOException
bodyDataSource - the entity
IOException - if the body parsing fails
public MultivalueMap(String encoding,
String... decodedFormParameters)
encoding - the encoding to usedecodedFormParameters - the decoded form parameters
public MultivalueMap(String encoding,
String serialized)
throws IOException
encoding - the encodingserialized - the serialized representation (mime type application/x-www-form-urlencoded)
IOException - if an exception occurs| Method Detail |
|---|
public final void setParameter(String name,
String value)
IMultivalueMap
setParameter in interface IMultivalueMapname - the namevalue - the valuepublic final void removeParameter(String name)
IMultivalueMap
removeParameter in interface IMultivalueMapname - the name
public final void addParameter(String name,
String value)
IMultivalueMap
addParameter in interface IMultivalueMapname - the namevalue - the valuepublic final Set<String> getParameterNameSet()
getParameterNameSet in interface IMultivalueMappublic final String[] getParameterValues(String name)
getParameterValues in interface IMultivalueMapname - the parameter name
public final String getParameter(String name)
getParameter in interface IMultivalueMapname - the parameter name
public final Integer getIntParameter(String name)
getIntParameter in interface IMultivalueMapname - the parameter name
public final int getIntParameter(String name,
int defaultVal)
getIntParameter in interface IMultivalueMapname - the parameter namedefaultVal - the default value
public final Long getLongParameter(String name)
getLongParameter in interface IMultivalueMapname - the parameter name
public final long getLongParameter(String name,
long defaultVal)
getLongParameter in interface IMultivalueMapname - the parameter namedefaultVal - the default value
public final Double getDoubleParameter(String name)
getDoubleParameter in interface IMultivalueMapname - the parameter name
public final double getDoubleParameter(String name,
double defaultVal)
getDoubleParameter in interface IMultivalueMapname - the parameter namedefaultVal - the default value
public final Float getFloatParameter(String name)
getFloatParameter in interface IMultivalueMapname - the parameter name
public final float getFloatParameter(String name,
float defaultVal)
getFloatParameter in interface IMultivalueMapname - the parameter namedefaultVal - the default value
public final Boolean getBooleanParameter(String name)
getBooleanParameter in interface IMultivalueMapname - the parameter name
public final boolean getBooleanParameter(String name,
boolean defaultVal)
getBooleanParameter in interface IMultivalueMapname - the parameter namedefaultVal - the default value
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||