Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.common
Class VCalendar

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byoracle.panama.messaging.common.VCalendar

All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class VCalendar
extends java.util.Hashtable

This class can be used to create a vCalendar which can be send as SmartMessage(Supported mainly by Nokia phones).

 Eg of a vCalendar:

 BEGIN:VCALENDAR
 VERSION:1.0
 BEGIN:VEVENT
 DESCRIPTION:call for a meeting
 DTSTART:20020731T160000
 DTEND:20020731T163000
 END:VEVENT
 END:VCALENDAR
 
See Also:
EventTodoProperties, Serialized Form

Field Summary
static java.lang.String BEGINVCAL
Defines constant that marks begining of vCalendar.
static java.lang.String CRLF
Defines separator between two vCalendar properties.
static int DEST_PORT
Defines destination NBS port for vCalendar smart message.
static java.lang.String ENCODED_VCAL
Key for encoded vCalendar.
static java.lang.String ENDVCAL
Defines constant that marks end of vCalendar.
static java.lang.String EVENT
Key for vCalendar Event property.
static java.lang.String MIME
Define MIME type for vCalendar.
static int ORG_PORT
Defines orgin NBS port for vCard smart message.
static java.lang.String PHONE_MODEL
Defines key for phone model.
static java.lang.String TODO
Key for vCalendar TODO property.
static java.lang.String VCAL_STRING
Key for plain vCalendar string.
static java.lang.String VERSION
Key for vCalendar version.

Constructor Summary
VCalendar()
constructor : sets the version of the vCalendar to 1.0

Method Summary
void setEvent(EventTodoProperties prop)
Attaches an EventTodoproperties object with the vCalendar as an EVENT entity.
void setPhoneModel(java.lang.String model)
Set the phone model.
void setTodo(EventTodoProperties prop)
Attaches an EventTodoproperties object with the vCalendar as an TODO entity.
void setVCal(java.lang.String cal)
Set the encoded vCalendar string.
void setVCalString(java.lang.String cal)
set the vCalendar using the string.

Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

Field Detail

BEGINVCAL

public static final java.lang.String BEGINVCAL
Defines constant that marks begining of vCalendar.
See Also:
Constant Field Values

CRLF

public static final java.lang.String CRLF
Defines separator between two vCalendar properties.
See Also:
Constant Field Values

DEST_PORT

public static final int DEST_PORT
Defines destination NBS port for vCalendar smart message.
See Also:
Constant Field Values

ENCODED_VCAL

public static final java.lang.String ENCODED_VCAL
Key for encoded vCalendar.
See Also:
Constant Field Values

ENDVCAL

public static final java.lang.String ENDVCAL
Defines constant that marks end of vCalendar.
See Also:
Constant Field Values

EVENT

public static final java.lang.String EVENT
Key for vCalendar Event property.
See Also:
Constant Field Values

MIME

public static final java.lang.String MIME
Define MIME type for vCalendar.
See Also:
Constant Field Values

ORG_PORT

public static final int ORG_PORT
Defines orgin NBS port for vCard smart message.
See Also:
Constant Field Values

PHONE_MODEL

public static final java.lang.String PHONE_MODEL
Defines key for phone model.
See Also:
Constant Field Values

TODO

public static final java.lang.String TODO
Key for vCalendar TODO property.
See Also:
Constant Field Values

VCAL_STRING

public static final java.lang.String VCAL_STRING
Key for plain vCalendar string.
See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
Key for vCalendar version.
See Also:
Constant Field Values

Constructor Detail

VCalendar

public VCalendar()
constructor : sets the version of the vCalendar to 1.0

Method Detail

setEvent

public void setEvent(EventTodoProperties prop)
Attaches an EventTodoproperties object with the vCalendar as an EVENT entity. Multiple EVENT entities can be attached with a vCalendar by calling this method multiple times with different EventTodoProperties object.

setPhoneModel

public void setPhoneModel(java.lang.String model)
Set the phone model. The phone model should be of the format: "band type", for example: "Nokia 6210". It is case insensitive

setTodo

public void setTodo(EventTodoProperties prop)
Attaches an EventTodoproperties object with the vCalendar as an TODO entity. Multiple TODO entities can be attached with a vCalendar by calling this method multiple times with different EventTodoProperties object

setVCal

public void setVCal(java.lang.String cal)
Set the encoded vCalendar string. Eg of encoded vcard string is String cal = "424547494E3A5643414C454E4441520D0A56455253494F4E3A312E300D0A"+ "424547494E3A564556454E540D0A4445534352495054494F4E3A63616C6C20666F7220612"+ "06D656574696E670D0A445453544152543A3230303230373331543136303030300D0A4454"+ "454E443A3230303230373331543136333030300D0A454E443A564556454E540D0A454E443"+ "A5643414C454E4441520D0A";

setVCalString

public void setVCalString(java.lang.String cal)
set the vCalendar using the string. Eg of such a string is : String cal = "BEGIN:VCALENDAR\r\nVERSION:1.0\r\nBEGIN:VEVENT\r\n"+ "DESCRIPTION:call for a meeting\r\nDTSTART:20020731T160000\r\n"+ "DTEND:20020731T163000\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n";

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.