JAVA/CORBA CLASSES


Examples: getURLHeaderInfo method
This agent gets the "Last-modified" header string for the URL specified in the agent comment.

import lotus.domino.*;
public class JavaAgent extends AgentBase {
 public void NotesMain() {
   try {
     Session session = getSession();
     AgentContext agentContext =
         session.getAgentContext();
     // (Your code goes here)
     Database db = agentContext.getCurrentDatabase();
     String hinfo = db.getURLHeaderInfo
       ("http://www.lotus.com",
        "Last-modified", null, null, null, null);
     System.out.println
       ("www.lotus.com was last modified on " + hinfo);
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also