tServletProps.cLanguage, index, tServletProps.cLocalName);
String tEnglishName = tServletProps.getOptionalString(
tServletProps.cLanguage, index, tServletProps.cEnglishName);
if ((tCode != null)&& (tCode.length() > 0)){
//language at index 'index' is found, so build class SieMapLanguage
SieMapLanguage tLanguage = new SieMapLanguage(
tCode,
tLocalName,
tEnglishName);
tVector.addElement (tLanguage);
//next index
index += 1;
}
else {
//no more entries found
break;
}
}
if (index == 0){
//no language entry found, but its required for SieMap
throw new NoSuchServletPropertyException ("Property Language not set!");
}
//now convert into the array of SieMapLanguages
SieMapLanguage[] tAcceptedLanguages = new SieMapLanguage[tVector.size()];
for (int i = 0; i < tVector.size(); i++){
SieMapLanguage tLanguage = (SieMapLanguage)tVector.elementAt(i);
tAcceptedLanguages[i] = tLanguage;
}
return tAcceptedLanguages;
}