public class SingletonUrlParameterConsumer extends Object implements UrlParameterConsumer
Constructor and Description |
---|
SingletonUrlParameterConsumer(String key) |
Modifier and Type | Method and Description |
---|---|
boolean |
addParameter(String k,
String v)
Propagate a parameter being met while parsing a query
string.
|
String |
getKey() |
String |
getValue() |
public SingletonUrlParameterConsumer(String key)
key
- The key to extract the first value of from the
parsed values.public boolean addParameter(String k, String v)
UrlParameterConsumer
addParameter
in interface UrlParameterConsumer
k
- The key of the parameter.v
- The value or null
, if the parameter does not
have a value.public String getKey()
public String getValue()
addParameter(String, String)
.Copyright © 2018 Clazzes.org. All rights reserved.