public static Map < String , String > httpMessagingConfiguration ( String ip , int port ) { final Map < String , String > result = new LinkedHashMap <> ( ) ; result . put ( MessagingConstants . MESSAGING_TYPE_PROPERTY , HttpConstants . FACTORY_HTTP ) ; result . put ( HttpConstants . HTTP_SERVER_IP , ip == null ? HttpConstants . DEFAULT_IP : ip ) ; result . put ( HttpConstants . HTTP_SERVER_PORT , "" + ( port <= 0 ? HttpConstants . DEFAULT_PORT : port ) ) ; return result ; }
Return a HTTP messaging configuration for the given parameters .