@Test public void testIgnore () throws AS2InvalidParameterException { final AS2Message aMsg = new AS2Message (); aMsg.headers ().addHeader ("message-id", "12345"); aMsg.partnership ().setSenderAS2ID ("s1"); aMsg.partnership ().setReceiverAS2ID ("r1"); final CompositeParameters aParams = new CompositeParameters (true).add ("msg", new MessageParameters (aMsg)); assertEquals ("sender.as2_id, receiver.as2_id, headers.message-id", aParams.format ("sender.as2_id, receiver.as2_id, headers.message-id")); assertEquals ("s1, r1, 12345", aParams.format ("$msg.sender.as2_id$, $msg.receiver.as2_id$, $msg.headers.message-id$")); assertEquals ("", aParams.format ("$dummy$")); assertEquals ("any", aParams.format ("any$dummy$")); assertEquals ("any", aParams.format ("$dummy$any")); assertEquals ("foobar", aParams.format ("foo$dummy$bar")); }
@Nonnull public CompositeParameters add (final String sKey, final AbstractParameterParser aParam) { getParameterParsers ().put (sKey, aParam); return this; }
CompositeParameters extends AbstractParameterParser { @Nonnull public CompositeParameters add (final String sKey, final AbstractParameterParser aParam) { getParameterParsers ().put (sKey, aParam); return this; } }
CompositeParameters extends AbstractParameterParser { @Nonnull public CompositeParameters add (final String sKey, final AbstractParameterParser aParam) { getParameterParsers ().put (sKey, aParam); return this; } CompositeParameters(final boolean bIgnoreMissingParsers);  CompositeParameters(final boolean bIgnoreMissingParsers,
                              @Nonnull final Map <String, ? extends AbstractParameterParser> aParameterParsers); }
CompositeParameters extends AbstractParameterParser { @Nonnull public CompositeParameters add (final String sKey, final AbstractParameterParser aParam) { getParameterParsers ().put (sKey, aParam); return this; } CompositeParameters(final boolean bIgnoreMissingParsers);  CompositeParameters(final boolean bIgnoreMissingParsers,
                              @Nonnull final Map <String, ? extends AbstractParameterParser> aParameterParsers); @Nonnull CompositeParameters add(final String sKey, final AbstractParameterParser aParam); void setIgnoreMissingParsers(final boolean bIgnoreMissingParsers); boolean isIgnoreMissingParsers(); @Override void setParameter(final String sKey, final String sValue); @Override String getParameter(final String sKey); void setParameterParsers(@Nullable final ICommonsMap <String, AbstractParameterParser> aParameterParsers); }
CompositeParameters extends AbstractParameterParser { @Nonnull public CompositeParameters add (final String sKey, final AbstractParameterParser aParam) { getParameterParsers ().put (sKey, aParam); return this; } CompositeParameters(final boolean bIgnoreMissingParsers);  CompositeParameters(final boolean bIgnoreMissingParsers,
                              @Nonnull final Map <String, ? extends AbstractParameterParser> aParameterParsers); @Nonnull CompositeParameters add(final String sKey, final AbstractParameterParser aParam); void setIgnoreMissingParsers(final boolean bIgnoreMissingParsers); boolean isIgnoreMissingParsers(); @Override void setParameter(final String sKey, final String sValue); @Override String getParameter(final String sKey); void setParameterParsers(@Nullable final ICommonsMap <String, AbstractParameterParser> aParameterParsers);  }