開発者は、WebSphere Business Integration Server Express Adapter のプロトコル・ハンドラー・フレームワークを使用することにより、各種のプロトコルに対応したプロトコル・ハンドラーを、統一された方法に従って作成することができます。プロトコル・ハンドラー・フレームワークには、CWURLConnection というクラスがあり、このクラスにはカスタム・プロトコル・ハンドラーの作成時に実装を必要とする抽象メソッドが所属しています。 このフレームワークは、com.crossworlds.protocolhandler パッケージの一部です。
各カスタム・プロトコル・ハンドラーは、少なくとも次の 2 つのクラスを持つ必要があります。
connection クラスは、CWURLConnection クラスを拡張します。
図 8 に、com.crossworlds.connectors.utils.protocolhandler 基本クラスの階層を示します。
プロトコル・ハンドラー・フレームワークを使用してカスタム・プロトコル・ハンドラーを開発する手順は次のとおりです。
Public URLConnection openConnection(URL url); throws IOException
public String getContent (object input, String mimeType, Sting BOPrefix) throws IOException public String getContentType() public synchronized void connect() throws IOException