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.
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:
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