From: Ravishankar H. <rav...@re...> - 2004-04-05 01:04:04
|
=0A=0A=0AOn Sun, 04 Apr 2004 khalid ait abdelkrim wrote :=0A>Hi everyone= ,=0A>I'm trying to write=0A>a routine that=0A>return the value of=0A>the bu= ndle-Vendor. I=0A>hope that there is=0A>someone who can help=0A>me to do th= at.=0A>thanks=0A>/khalid=0A>=0A>C est le moment de dynamiser votre bo=EEte = mail en d=E9couvrant les offres CaraMail Premium - http://www.caramailmax.c= om=0A>=0A=0A=0A=0Ahello,=0AThere is a method called getHeaders() in the Bun= dle class.This will help you to get the Bundle-vendor=0A=0Athis code will s= olve your problem...=0A=0Apublic void start(BundleContext context)=0A{=0A = Bundle b =3D context.getBundle();=0A Dictionary dict =3D b.getHeaders(= );=0A System.out.println("Bundle-Vendor =3D " + dict.get("Bundle-Vendor"= ));=0A}=0A =0A=0A=0A=0Acheers,=0Aravi=0A=0A=0A-------Have Fun, coz GOD L= oves Fun----------=0ARavishankar Hiremath=0AMonash University=0ACaulfield= =0AVictoria=0AAustralia |