11package io .vertx .ext .web .handler .sockjs ;
22
3+ import com .google .common .base .Joiner ;
4+ import com .google .common .base .MoreObjects ;
35import in .erail .glue .annotation .StartService ;
46import java .util .List ;
7+ import org .apache .logging .log4j .Logger ;
58
69/**
710 *
811 * @author vinay
912 */
1013public class BridgeOptionsExt extends BridgeOptions {
1114
15+ private Logger mLog ;
1216 private List <String > mInboundAddress ;
1317 private List <String > mOutboundAddress ;
1418
@@ -19,7 +23,20 @@ public class BridgeOptionsExt extends BridgeOptions {
1923 private List <String > mOutboundRequiredAuthority ;
2024
2125 @ StartService
22- void start () {
26+ public void start () {
27+
28+ getLog ().debug (() -> {
29+ return MoreObjects
30+ .toStringHelper (BridgeOptionsExt .class .getCanonicalName ())
31+ .add ("InboundAddress" , Joiner .on ("," ).join (mInboundAddress ))
32+ .add ("OutboundAddress" , Joiner .on ("," ).join (mOutboundAddress ))
33+ .add ("InboundAddressRegex" , Joiner .on ("," ).join (mInboundAddressRegex ))
34+ .add ("OutboundAddressRegex" , Joiner .on ("," ).join (mOutboundAddressRegex ))
35+ .add ("InboundRequiredAuthority" , Joiner .on ("," ).join (mInboundRequiredAuthority ))
36+ .add ("OutboundRequiredAuthority" , Joiner .on ("," ).join (mOutboundRequiredAuthority ))
37+ .toString ();
38+ });
39+
2340 getInboundAddress ()
2441 .stream ()
2542 .forEachOrdered ((rule ) -> {
@@ -117,4 +134,12 @@ public void setOutboundRequiredAuthority(List<String> pOutboundRequiredAuthority
117134 this .mOutboundRequiredAuthority = pOutboundRequiredAuthority ;
118135 }
119136
137+ public Logger getLog () {
138+ return mLog ;
139+ }
140+
141+ public void setLog (Logger pLog ) {
142+ this .mLog = pLog ;
143+ }
144+
120145}
0 commit comments