getContentProtocol()

Indicates the content protocol that the ODA supports for a specified content type.

Syntax

public long getContentProtocol(ContentType contentType);
 

Parameters

contentType
Indicates the content type for which the method obtains the supported content protocol.

Return values

A long-integer (long) value that indicates the content protocol that the ODA implements. Compare this long value with the following content-protocol constants:

ODKConstant.CONTENT_PROTOCOL_CALLBACK
Indicates that the ODA supports a callback protocol; that is the ODK initiates generation of the specified content and notifies Business Object Wizard when generation is complete.
ODKConstant.CONTENT_PROTOCOL_ONREQUEST
Indicates that the ODA supports an on-demand protocol; that is, Business Object Wizard initiates generation of the specified content type.

Notes

The getContentProtocol() method is the single method defined in the IGeneratesContent interface, which the IGeneratesBoDefs interface extends. Business Object Wizard calls getContentProtocol() to determine the content protocol that the ODA supports fort the contentType content type. For more information, see Indicating the implemented content protocols.

Copyright IBM Corp. 1997, 2004