Source:
private void configureHttp ( ) { ui.header ( "Http section" ) ; promptAndSetString ( "User" , com.ericsson.gerrit.plugins.highavailability.HTTP_SECTION , com.ericsson.gerrit.plugins.highavailability.USER_KEY , null ) ; promptAndSetString ( "Password" , com.ericsson.gerrit.plugins.highavailability.HTTP_SECTION , com.ericsson.gerrit.plugins.highavailability.PASSWORD_KEY , null ) ; promptAndSetString ( "Max number of tries to forward to remote peer" , com.ericsson.gerrit.plugins.highavailability.HTTP_SECTION , com.ericsson.gerrit.plugins.highavailability.MAX_TRIES_KEY , com.ericsson.gerrit.plugins.highavailability.Setup.str ( com.ericsson.gerrit.plugins.highavailability.DEFAULT_MAX_TRIES ) ) ; promptAndSetString ( "Retry interval [ms]" , com.ericsson.gerrit.plugins.highavailability.HTTP_SECTION , com.ericsson.gerrit.plugins.highavailability.RETRY_INTERVAL_KEY , com.ericsson.gerrit.plugins.highavailability.Setup.str ( com.ericsson.gerrit.plugins.highavailability.DEFAULT_RETRY_INTERVAL ) ) ; promptAndSetString ( "Connection timeout [ms]" , com.ericsson.gerrit.plugins.highavailability.HTTP_SECTION , com.ericsson.gerrit.plugins.highavailability.CONNECTION_TIMEOUT_KEY , com.ericsson.gerrit.plugins.highavailability.Setup.str ( com.ericsson.gerrit.plugins.highavailability.DEFAULT_TIMEOUT_MS ) ) ; promptAndSetString ( "Socket timeout [ms]" , com.ericsson.gerrit.plugins.highavailability.HTTP_SECTION , com.ericsson.gerrit.plugins.highavailability.SOCKET_TIMEOUT_KEY , com.ericsson.gerrit.plugins.highavailability.Setup.str ( com.ericsson.gerrit.plugins.highavailability.DEFAULT_TIMEOUT_MS ) ) ; }

Target:
private void configureHttp ( ) { ui.header ( "Http section" ) ; promptAndSetString ( "User" , com.ericsson.gerrit.plugins.highavailability.Configuration.HTTP_SECTION , com.ericsson.gerrit.plugins.highavailability.Configuration.USER_KEY , null ) ; promptAndSetString ( "Password" , com.ericsson.gerrit.plugins.highavailability.Configuration.HTTP_SECTION , com.ericsson.gerrit.plugins.highavailability.Configuration.PASSWORD_KEY , null ) ; promptAndSetString ( "Max number of tries to forward to remote peer" , com.ericsson.gerrit.plugins.highavailability.Configuration.HTTP_SECTION , com.ericsson.gerrit.plugins.highavailability.Configuration.MAX_TRIES_KEY , com.ericsson.gerrit.plugins.highavailability.Setup.str ( com.ericsson.gerrit.plugins.highavailability.Configuration.DEFAULT_MAX_TRIES ) ) ; promptAndSetString ( "Retry interval [ms]" , com.ericsson.gerrit.plugins.highavailability.Configuration.HTTP_SECTION , com.ericsson.gerrit.plugins.highavailability.Configuration.RETRY_INTERVAL_KEY , com.ericsson.gerrit.plugins.highavailability.Setup.str ( com.ericsson.gerrit.plugins.highavailability.Configuration.DEFAULT_RETRY_INTERVAL ) ) ; promptAndSetString ( "Connection timeout [ms]" , com.ericsson.gerrit.plugins.highavailability.Configuration.HTTP_SECTION , com.ericsson.gerrit.plugins.highavailability.Configuration.CONNECTION_TIMEOUT_KEY , com.ericsson.gerrit.plugins.highavailability.Setup.str ( com.ericsson.gerrit.plugins.highavailability.Configuration.DEFAULT_TIMEOUT_MS ) ) ; promptAndSetString ( "Socket timeout [ms]" , com.ericsson.gerrit.plugins.highavailability.Configuration.HTTP_SECTION , com.ericsson.gerrit.plugins.highavailability.Configuration.SOCKET_TIMEOUT_KEY , com.ericsson.gerrit.plugins.highavailability.Setup.str ( com.ericsson.gerrit.plugins.highavailability.Configuration.DEFAULT_TIMEOUT_MS ) ) ; }