Sun Java System Calendar Server 6 2005Q4 Developer's Guide

Method: GetSupportedContentTypes

Purpose

Gets the content type this database translator supports.

Syntax

PRUint32 GetSupportedContentTypes 
                    (char** aSupportedInContentTypes,
                     char** aSupportedOutContentType,
                     char** aPreferredInContentType,
                     PRInt32 *aReturnCode)=0;

Parameters

The method has the following parameters:

aSupportedInContentTypes

A list of content-types that the server can send as input to translator. An array of null-terminated strings. 

aSupportedOutContentType

The content type the plug-in converts data to. 

aPreferredInContentType

The content type the plug-in would prefer to receive. It must be one of the supported content types passed in the first parameter. 

aReturnCode

On return, contains a constant that determines whether the server should continue with the default authentication procedure. 

One of the following constants: 

NS_CONTINUE_DEFAULT_PROCESSING

NS_OVERRIDE_DEFAULT_PROCESSING

Returns

NS_OK on success. A non-zero on failure.

Description

Get the content type this database translator supports.