public abstract class AbstractParameterParser extends Object
| Constructor and Description |
|---|
AbstractParameterParser() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(String sFormat)
Fill in a format string with information from a ParameterParser
|
abstract String |
getParameter(String sKey) |
abstract void |
setParameter(String sKey,
String sValue) |
void |
setParameters(String sEncodedParams)
Set parameters from a string, like
"msg.sender.as2_id=ME,msg.headers.content-type=application/X12"
|
void |
setParameters(String sFormat,
String sDelimiters,
String sValue)
Set parameters from a string separated by delimiters.
|
String |
toString() |
public abstract void setParameter(@Nonnull String sKey, @Nonnull String sValue) throws AS2InvalidParameterException
AS2InvalidParameterException@Nullable public abstract String getParameter(@Nonnull String sKey) throws AS2InvalidParameterException
AS2InvalidParameterExceptionpublic void setParameters(@Nonnull String sEncodedParams) throws AS2InvalidParameterException
sEncodedParams - string to parseAS2InvalidParameterException - In case the string is incorrectpublic void setParameters(@Nullable String sFormat, @Nullable String sDelimiters, @Nonnull String sValue) throws AS2Exception
sFormat - Comma separated list of parameters to set, like
msg.sender.as2_id,msg.receiver.as2_id,msg.header.content-typesDelimiters - delimiters in string to parse, like "-."sValue - string to parse, like "NORINCO-WALMART.application/X12"AS2Exception - In case the string is incorrect@Nonnull public String format(@Nullable String sFormat) throws AS2InvalidParameterException
sFormat - the format string to fill in. May be null.AS2InvalidParameterException - In case the string is incorrectCopyright © 2013–2022 Philip Helger. All rights reserved.