public abstract class MessageQueryParameter<X> extends MessageParameter<List<X>>
Query parameters may both occur multiple times or be of the form "key=value1,value2,value3".
If a query parameter is specified multiple times the individual values are concatenated with
,
and passed as a single value to convertToString(List)
.
MessageParameter.MessageParameterRequisiteness
Modifier | Constructor and Description |
---|---|
protected |
MessageQueryParameter(String key,
MessageParameter.MessageParameterRequisiteness requisiteness) |
Modifier and Type | Method and Description |
---|---|
List<X> |
convertFromString(String values)
Converts the given string to a valid value of this parameter.
|
abstract X |
convertStringToValue(String value)
Converts the given string to a valid value of this parameter.
|
String |
convertToString(List<X> values)
Converts the given value to its string representation.
|
abstract String |
convertValueToString(X value)
Converts the given value to its string representation.
|
getDescription, getKey, getValue, isMandatory, isResolved, resolve, resolveFromString
protected MessageQueryParameter(String key, MessageParameter.MessageParameterRequisiteness requisiteness)
public List<X> convertFromString(String values) throws ConversionException
MessageParameter
convertFromString
in class MessageParameter<List<X>>
values
- string representation of parameter valueConversionException
public abstract X convertStringToValue(String value) throws ConversionException
value
- string representation of parameter valueConversionException
public String convertToString(List<X> values)
MessageParameter
convertToString
in class MessageParameter<List<X>>
values
- parameter valueCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.