JAVA/CORBA クラス


例:Addr822LocalPart プロパティ
次のエージェントはインターネット名を作成し、RFC 822 の LocalPart 構成要素を表示します。

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
System.out.println(nam.getAddr822LocalPart());

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

関連項目