Domino Code Fragment

Code Name*
getURLDatabase method
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.18.220.187.178
Description*
This program opens the default Web navigator database.
Type*
Java
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
import lotus.notes.*;


class geturldb extends NotesThread
{
 public static void main(String argv[])
   {
       geturldb t = new geturldb();
       t.start();
   }


 public void runNotes()
   {
   try
     {
       Session s = Session.newInstance();
       Database db = s.getURLDatabase();
       System.out.println
       ("Title of URL database: \"" + db.getTitle() + "\"");
     }
   catch (Exception e)
     {
       e.printStackTrace();
     }
   }
}