@Test public void testService_DefaultServiceId() throws Exception { MockMessageProducer mock = new MockMessageProducer(); Channel c = HttpHelper.createAndStartChannel(mock); BranchingHttpRequestService service = new BranchingHttpRequestService() .withDefaultServiceId("DefaultServiceId") .withUrl(HttpHelper.createProduceDestination(c).getDestination()) .withContentType("text/complicated"); AdaptrisMessage msg = new DefaultMessageFactory().newMessage(TEXT); try { c.requestStart(); execute(service, msg); waitForMessages(mock, 1); } finally { HttpHelper.stopChannelAndRelease(c); } assertEquals(1, mock.messageCount()); assertEquals("DefaultServiceId", msg.getNextServiceId()); }
public BranchingHttpRequestService withDefaultServiceId(String s) { setDefaultServiceId(s); return this; }
BranchingHttpRequestService extends HttpRequestServiceImpl { public BranchingHttpRequestService withDefaultServiceId(String s) { setDefaultServiceId(s); return this; } }
BranchingHttpRequestService extends HttpRequestServiceImpl { public BranchingHttpRequestService withDefaultServiceId(String s) { setDefaultServiceId(s); return this; } BranchingHttpRequestService();  BranchingHttpRequestService(String url); }
BranchingHttpRequestService extends HttpRequestServiceImpl { public BranchingHttpRequestService withDefaultServiceId(String s) { setDefaultServiceId(s); return this; } BranchingHttpRequestService();  BranchingHttpRequestService(String url); @Override boolean isBranching(); @Override void doService(AdaptrisMessage msg); BranchingHttpRequestService withStatusMatches(List<StatusEvaluator> matchers); BranchingHttpRequestService withStatusMatches(StatusEvaluator... matchers); BranchingHttpRequestService withDefaultServiceId(String s); }
BranchingHttpRequestService extends HttpRequestServiceImpl { public BranchingHttpRequestService withDefaultServiceId(String s) { setDefaultServiceId(s); return this; } BranchingHttpRequestService();  BranchingHttpRequestService(String url); @Override boolean isBranching(); @Override void doService(AdaptrisMessage msg); BranchingHttpRequestService withStatusMatches(List<StatusEvaluator> matchers); BranchingHttpRequestService withStatusMatches(StatusEvaluator... matchers); BranchingHttpRequestService withDefaultServiceId(String s);  }