private static EndPointInfo defineEndPoint ( EndPointMgr epm , String name , String [ ] config ) { String host = null ; String port = null ; for ( int i = 0 ; i < config . length ; i ++ ) { String key = ChannelUtils . extractKey ( config [ i ] ) ; if ( "host" . equalsIgnoreCase ( key ) ) { host = ChannelUtils . extractValue ( config [ i ] ) ; } else if ( "port" . equalsIgnoreCase ( key ) ) { port = ChannelUtils . extractValue ( config [ i ] ) ; } } return epm . defineEndPoint ( name , host , Integer . parseInt ( port ) ) ; }
Define a new endpoint definition using the input name and list of properties .