private ServerConnector configureConnector ( ) { ServerConnector connector = null ; if ( m_tls ) { connector = createSSLConnector ( ) ; } else { // Unsecured connector connector = new ServerConnector ( m_jettyServer ) ; } if ( m_restaddr != null ) { connector . setHost ( m_restaddr ) ; } connector . setPort ( m_restport ) ; connector . setIdleTimeout ( SOCKET_TIMEOUT_MILLIS ) ; connector . addBean ( new ConnListener ( ) ) ; // invokes registered callbacks, if any return connector ; }
Create configure and return the ServerConnector object .