@Test public void testService_CachedPattern() throws Exception { RegexpService s = createService(); start(s); AdaptrisMessage msg1 = AdaptrisMessageFactory.getDefaultInstance().newMessage(PAYLOAD); s.doService(msg1); AdaptrisMessage msg2 = AdaptrisMessageFactory.getDefaultInstance().newMessage(PAYLOAD); s.doService(msg2); stop(s); assertEquals("UB3 5AN", msg1.getMetadataValue(TARGET_METADATA_KEY)); assertEquals("UB3 5AN", msg2.getMetadataValue(TARGET_METADATA_KEY)); }
public void doService(AdaptrisMessage msg) throws ServiceException { try { for (RegexpWrapper qe : executors) { qe.execute(getRegexpSource().extract(msg), msg); } } catch (Exception e) { throw ExceptionHelper.wrapServiceException(e); } }
RegexpService extends ServiceImp { public void doService(AdaptrisMessage msg) throws ServiceException { try { for (RegexpWrapper qe : executors) { qe.execute(getRegexpSource().extract(msg), msg); } } catch (Exception e) { throw ExceptionHelper.wrapServiceException(e); } } }
RegexpService extends ServiceImp { public void doService(AdaptrisMessage msg) throws ServiceException { try { for (RegexpWrapper qe : executors) { qe.execute(getRegexpSource().extract(msg), msg); } } catch (Exception e) { throw ExceptionHelper.wrapServiceException(e); } } RegexpService(); }
RegexpService extends ServiceImp { public void doService(AdaptrisMessage msg) throws ServiceException { try { for (RegexpWrapper qe : executors) { qe.execute(getRegexpSource().extract(msg), msg); } } catch (Exception e) { throw ExceptionHelper.wrapServiceException(e); } } RegexpService(); void doService(AdaptrisMessage msg); @Override void prepare(); DataInputParameter<String> getRegexpSource(); void setRegexpSource(DataInputParameter<String> src); List<Execution> getExecutions(); void setExecutions(List<Execution> list); }
RegexpService extends ServiceImp { public void doService(AdaptrisMessage msg) throws ServiceException { try { for (RegexpWrapper qe : executors) { qe.execute(getRegexpSource().extract(msg), msg); } } catch (Exception e) { throw ExceptionHelper.wrapServiceException(e); } } RegexpService(); void doService(AdaptrisMessage msg); @Override void prepare(); DataInputParameter<String> getRegexpSource(); void setRegexpSource(DataInputParameter<String> src); List<Execution> getExecutions(); void setExecutions(List<Execution> list);  }