JAVA/CORBA CLASSES


Examples: Addr821 property
This agent creates an Internet name then displays the RFC 821 component.

import lotus.domino.*;

public class JavaAgent extends AgentBase {

 public void NotesMain() {

   try {
     Session session = getSession();
     AgentContext agentContext = session.getAgentContext();

     // (Your code goes here)
     
     // Create a hierarchical name
     Name nam = session.createName(
       "\"John B Goode\" <jbg@us.acme.com> (Guitars) (Music) (East)");

     // Returns:
     // jbg@us.acme.com
     System.out.println(nam.getAddr821());

   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also