Protocol handler framework

The WebSphere Business Integration Adapter Protocol Handler Framework enables developers to write protocol handlers for different types of protocols in a uniform manner. The Protocol Handler Framework has a class called CWURLConnection, which contains the abstract methods that need to be implemented to create a custom protocol handler. The framework is part of the com.crossworlds.protocolhandler package.

Protocol handler framework classes

Every custom protocol handler must have at least two classes:

The connection class extends the CWURLConnection class.

Figure 8 illustrates the hierarchy of the com.crossworlds.connectors.utils.protocolhandler base class.

Figure 8. Protocol handler class hierarchy


To use the Protocol Handler Framework to develop a custom protocol handler, do the following:

Handler class summary

Public URLConnection openConnection(URL url); throws IOException

Connection class summary

public String getContent (object input, String mimeType, 
Sting BOPrefix) throws IOException
public String getContentType()
public synchronized void connect() throws IOException

Copyright IBM Corp. 1997, 2003