File tree Expand file tree Collapse file tree
src/main/java/org/nhindirect/gateway/streams Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package org .nhindirect .gateway .streams ;
2+
3+ import org .springframework .cloud .stream .annotation .Output ;
4+ import org .springframework .messaging .MessageChannel ;
5+
6+ public interface STALastMileDeliveryOutput
7+ {
8+ public static final String STA_LAST_MILE_OUTPUT = "direct-sta-last-mile-output" ;
9+
10+ @ Output (STA_LAST_MILE_OUTPUT )
11+ MessageChannel staLastMileOutput ();
12+ }
Original file line number Diff line number Diff line change 1+ package org .nhindirect .gateway .streams ;
2+
3+ import org .nhindirect .common .mail .SMTPMailMessage ;
4+ import org .nhindirect .common .mail .streams .SMTPMailMessageConverter ;
5+ import org .springframework .beans .factory .annotation .Autowired ;
6+ import org .springframework .beans .factory .annotation .Qualifier ;
7+ import org .springframework .cloud .stream .annotation .EnableBinding ;
8+ import org .springframework .cloud .stream .annotation .Output ;
9+ import org .springframework .messaging .MessageChannel ;
10+
11+ @ EnableBinding (STALastMileDeliveryOutput .class )
12+ public class STALastMileDeliverySource
13+ {
14+ @ Autowired
15+ @ Qualifier (STALastMileDeliveryOutput .STA_LAST_MILE_OUTPUT )
16+ private MessageChannel lastMileChannel ;
17+
18+ @ Output (STALastMileDeliveryOutput .STA_LAST_MILE_OUTPUT )
19+ public <T > void staLastMile (SMTPMailMessage msg )
20+ {
21+ this .lastMileChannel .send (SMTPMailMessageConverter .toStreamMessage (msg ));
22+ }
23+ }
Original file line number Diff line number Diff line change 1616import org .nhindirect .common .tx .model .TxDetail ;
1717import org .nhindirect .common .tx .model .TxDetailType ;
1818import org .nhindirect .common .tx .model .TxMessageType ;
19- import org .nhindirect .gateway .streams .STALastMileSource ;
19+ import org .nhindirect .gateway .streams .STALastMileDeliverySource ;
2020import org .nhindirect .gateway .streams .STAPostProcessInput ;
2121import org .nhindirect .gateway .streams .SmtpRemoteDeliverySource ;
2222import org .nhindirect .gateway .streams .XDRemoteDeliverySource ;
@@ -50,7 +50,7 @@ public class STAPostProcessProcessor
5050 protected XDRemoteDeliverySource xdRemoteDeliverySource ;
5151
5252 @ Autowired
53- protected STALastMileSource lastMileSource ;
53+ protected STALastMileDeliverySource lastMileSource ;
5454
5555 @ Autowired
5656 protected RoutingResolver routingResolver ;
You can’t perform that action at this time.
0 commit comments