Sun Logo


Sun Javatrademark System Content Delivery Server Customization Guide

820-1941-10



Contents

Figures

Tables

Code Examples

Preface

1. Introduction

1.1 Event Service API

1.2 Billing API

1.3 Content Management API

1.4 Content Validation API

1.5 User Profile API

1.6 WAP Gateway API

1.7 Messaging API

1.8 Confirm Service API

1.9 Streaming API

1.10 Subscriber API

1.11 Vending Manager API

1.12 Device Client Web Services

1.13 API by Feature

2. Event Service API

2.1 Database Client Application

2.1.1 Event Tables

2.1.1.1 CDS_EVENT Table

2.1.1.2 CDS_EVENT_TYPE Table

2.1.1.3 EVENT_SOURCE_TYPE_ID Table

2.1.2 Reporting Tools

2.2 JMS Client Application

2.3 Events and Event Data

2.4 Using the Event Service API

2.4.1 Developing a Database Client Application

2.4.2 Developing a JMS Client Application

2.5 Sample Implementation of MessageListener

3. Billing API

3.1 General Process Flow

3.1.1 Content Listing

3.1.2 Transaction Initiation

3.1.3 Subscriber Purchase

3.1.4 Download Confirmation

3.1.5 Subscription Verification

3.1.6 Error Handling

3.1.7 Custom Field Access

3.2 BillingManager Interface

3.2.1 authorize Method

3.2.2 checkSubscription Method

3.2.3 confirm Method

3.2.4 contentDelete Method

3.2.5 getBillingInfo Method

3.2.6 getBillingInfos Method

3.2.7 refund Method

3.2.8 reverse Method

3.2.9 subscribe Method

3.2.10 unsubscribe Method

3.3 Using the Billing API

3.4 Sample Billing Adapter

4. Content Management API

4.1 General Process Flow

4.1.1 Obtaining a List of Content

4.1.2 Obtaining Content Details

4.1.3 Downloading Content

4.2 ContentManager Interface

4.2.1 getContentInfo Method

4.2.2 getContentInfos Method

4.2.3 getContentDescriptor Method

4.2.4 getContentBinary Method

4.3 Using the Content Management API

4.4 Sample Content Management Adapter

5. Content Validation API

5.1 General Process Flow

5.2 ValidationAdapter Class

5.2.1 execute Method

5.2.2 returns Method

5.3 ValidationContent Class

5.4 Using the Content Validation API

5.5 Sample Content Validation Adapter

6. User Profile API

6.1 UserManager Class

6.1.1 doFormatMobileId Method

6.1.2 doFormatLoginId Method

6.1.3 doGetUserDeviceModel Method

6.2 User Interface

6.3 UserDeviceManager Interface

6.4 UserDeviceModel Interface

6.5 Using the User Profile API

6.6 Sample Implementation of the User Manager API

6.6.1 SampleUserImpl.java

6.6.2 SampleUserManagerImpl.java

6.6.3 Working With the Sample Adapter

7. WAP Gateway API

7.1 WAPGatewayAdapter Class

7.2 Using the WAP Gateway API

7.3 Sample WAP Gateway Adapter

8. Messaging API

8.1 PushMsgSender Interface

8.2 PushMsgListener Interface

8.3 PushMessage Class

8.4 SMSMessage Class

8.5 WapPushMessage Class

8.6 SMTPMessage Class

8.7 ContentSlide Class

8.8 MMSSlide Class

8.9 MMSPushMessage Class

8.10 MMSSender Interface

8.10.1 sendMMS

8.11 PushResponse Class

8.12 PushConstants Class

8.13 Using the Messaging API

9. Confirm Service API

9.1 General Process Flow

9.2 ConfirmServiceAdapter Class

9.2.1 connect Method

9.2.2 init Method

9.2.3 listen Method

9.2.4 messageReceived Method

9.3 Using the Confirm Service API

10. Streaming API

10.1 General Process Flow

10.1.1 Stocking

10.1.2 Unstocking

10.1.3 Purchasing

10.2 StreamingAdapter Interface

10.2.1 addInfoToSDPContent Method

10.2.2 deleteContent Method

10.2.3 getSDP Method

10.2.4 getStreamingURL Method

10.2.5 returnsSDP Method

10.2.6 uploadContent Method

10.3 Using the Streaming API

11. Subscriber API

11.1 General Process Flow

11.2 Using the Subscriber API

11.2.1 Managing Transactions

11.2.2 Example of Creating an IApiContext Object

11.2.3 Example of Creating a Service

11.3 XML-RPC Implementation

11.3.1 Accessing Content Delivery Server

11.3.2 Using XML-RPC Handlers for the Subscriber API

11.3.2.1 Guidelines for Calls to XML-RPC Methods

11.3.2.2 AuthenticationHandler

11.3.2.3 CategoryHandler

11.3.2.4 ContentHandler

11.3.2.5 DownloadHandler

11.3.2.6 GiftingHandler

11.3.2.7 MessageHandler

11.3.2.8 StreamingHandler

11.3.2.9 SystemHandler

11.3.2.10 UserHandler

11.3.2.11 Parameters for the Methods

11.3.3 Examples of Using Handlers

11.3.3.1 Example of Creating an API Context Object

11.3.3.2 Example of Creating a Handler and Purchasing Content

12. Vending Manager API

12.1 General Process Flow

12.2 Guidelines for Calls to XML-RPC Methods

12.3 Accessing Content Delivery Server

13. Device Client Web Services

13.1 Authentication

13.2 Catalog

13.3 Content

13.4 Device

13.5 History

13.6 Locale

Index