public static void config(String rootPath, boolean useRootRelativePath, String serverURL) throws IOException {
        HttpURLConnection con = null;
        try {
            String urlString = new StringBuilder().append(serverURL).append("/?").append(Constants.ROOT_PATH)
                    .append("=").append(rootPath).append("&").append(Constants.USE_ROOT_RELATIVE_PATH).append("=")
                    .append(String.valueOf(useRootRelativePath)).toString();
            con = (HttpURLConnection) new URL(urlString).openConnection();
            con.setRequestMethod(METHOD);
            con.setReadTimeout(READ_TIMEOUT);
            con.getResponseCode();
        } finally {
            con.disconnect();
        }
    }
public static void config ( String rootPath , boolean useRootRelativePath , String serverURL ) throws IOException { HttpURLConnection con = null ; try { String urlString = new StringBuilder ( ) . append ( serverURL ) . append ( "/?" ) . append ( Constants . ROOT_PATH ) . append ( "=" ) . append ( rootPath ) . append ( "&" ) . append ( Constants . USE_ROOT_RELATIVE_PATH ) . append ( "=" ) . append ( String . valueOf ( useRootRelativePath ) ) . toString ( ) ; con = ( HttpURLConnection ) new URL ( urlString ) . openConnection ( ) ; con . setRequestMethod ( METHOD ) ; con . setReadTimeout ( READ_TIMEOUT ) ; con . getResponseCode ( ) ; } finally { con . disconnect ( ) ; } }
Configures the HttpSimulator running on the specified serverURL (e.g. http://localhost:8080) with the specified
root path and useRootRelativePath.

@param rootPath the rootPath
@param useRootRelativePath the useRootRelativePath
@param serverURL the serverURL
@throws IOException if something goes wrong