System.out.println("top of the JSIP stack. Let us test the marshaling");
System.out.println("of the P-User-Database header.");
System.out.println("************************************************************");
HeaderFactoryImpl himpl = new HeaderFactoryImpl();
PUserDatabaseHeader pud = himpl.createPUserDatabaseHeader("rancorehss.rancore.com:5555");
try {
pud.setParameter("transport", "tcp");
} catch (ParseException e) {
e.printStackTrace();
}
System.out.println("The encoded Database name is---> "+pud.getDatabaseName());
System.out.println("The encoded URI parameter is---> "+pud.getParameter("transport"));
System.out.println("The encoded header looks like---> "+pud.toString());
}