1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| public void CPS (String commande, String protocole){
try {
HashMap<String, Object> uneRep= new HashMap<String, Object>();
currentDocu = buildDoc(protocole,commande);
TransformationHandling handlresp = new TransformationHandling();
uneRep = handlresp.FluxPlatToObject(commande, protocole);
praticInst = new PraticienIntermediaire();
for (Map.Entry e : unerep.entrySet()) {
if(((String) e.getKey()).equalsIgnoreCase("CPS")){
praticInst = (PraticienIntermediaire) e.getValue();
}
}
ArrayList<Element> PratEle =buildingPraticien(praticInst);
for (Element elm : PratEle){
praticien.addContent(elm);
}
SendCodeOut(currentDocu);
} catch (Exception e) {
currentDocu = ErrorDoc("Erreur Com",protocole,commande, "-6666");
e.printStackTrace();
} |
Partager