// Launch the generation of a set of profiles for a given user/resource // @param user : The user name // @param resource : The resource name // @param profiles : An array of string containing the names of the profiles to be generated. // @return : true upon success, otherwise an exception will be raised public void createProfiles(String user, String resource, StupeflixProfileSet profiles) { // Create the base url String url = this.createProfilesUrl(user, resource); String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + profiles.ToString(); String body = XML_PARAMETER + "=" + UpperCaseUrlEncode(xml); this.sendContent("POST", url, null, body, APPLICATION_URLENCODED_CONTENT_TYPE); }