@Test public void testFilter2() throws Throwable { ISOMsg m = new ISOMsg(); m.set(100, "testMacroFilterValue"); ISOMsg result = new MacroFilter().filter(new BASE24TCPChannel(), m, new LogEvent("testMacroFilterTag")); assertSame(m, result, "result"); }
public ISOMsg filter (ISOChannel channel, ISOMsg m, LogEvent evt) throws VetoException { try { applyProps (m); if (validFields.length > 0) m = m.clone (validFields); if (unsetFields.length > 0) m.unset (unsetFields); } catch (ISOException e) { evt.addMessage (e); throw new VetoException (e); } return m; }
MacroFilter implements ISOFilter, Configurable { public ISOMsg filter (ISOChannel channel, ISOMsg m, LogEvent evt) throws VetoException { try { applyProps (m); if (validFields.length > 0) m = m.clone (validFields); if (unsetFields.length > 0) m.unset (unsetFields); } catch (ISOException e) { evt.addMessage (e); throw new VetoException (e); } return m; } }
MacroFilter implements ISOFilter, Configurable { public ISOMsg filter (ISOChannel channel, ISOMsg m, LogEvent evt) throws VetoException { try { applyProps (m); if (validFields.length > 0) m = m.clone (validFields); if (unsetFields.length > 0) m.unset (unsetFields); } catch (ISOException e) { evt.addMessage (e); throw new VetoException (e); } return m; } MacroFilter(); }
MacroFilter implements ISOFilter, Configurable { public ISOMsg filter (ISOChannel channel, ISOMsg m, LogEvent evt) throws VetoException { try { applyProps (m); if (validFields.length > 0) m = m.clone (validFields); if (unsetFields.length > 0) m.unset (unsetFields); } catch (ISOException e) { evt.addMessage (e); throw new VetoException (e); } return m; } MacroFilter(); void setConfiguration(Configuration cfg); ISOMsg filter(ISOChannel channel, ISOMsg m, LogEvent evt); }
MacroFilter implements ISOFilter, Configurable { public ISOMsg filter (ISOChannel channel, ISOMsg m, LogEvent evt) throws VetoException { try { applyProps (m); if (validFields.length > 0) m = m.clone (validFields); if (unsetFields.length > 0) m.unset (unsetFields); } catch (ISOException e) { evt.addMessage (e); throw new VetoException (e); } return m; } MacroFilter(); void setConfiguration(Configuration cfg); ISOMsg filter(ISOChannel channel, ISOMsg m, LogEvent evt);  }