public static Map < String , Object > getTransportProperties ( TransportsConfiguration transportsConfiguration ) { Map < String , Object > transportProperties = new HashMap <> ( ) ; Set < TransportProperty > transportPropertiesSet = transportsConfiguration . getTransportProperties ( ) ; if ( transportPropertiesSet != null && ! transportPropertiesSet . isEmpty ( ) ) { transportProperties = transportPropertiesSet . stream ( ) . collect ( Collectors . toMap ( TransportProperty :: getName , TransportProperty :: getValue ) ) ; } return transportProperties ; }
Extract transport properties from transport configurations .