Compoze Software, Inc.

com.compoze.exchange.webdav
Class WebdavExerciser


java.lang.Object

  |

  +--com.compoze.exchange.webdav.WebdavExerciser


public class WebdavExerciser
extends java.lang.Object

This class is an exerciser for the Harmony for Exchange with WebDAV API. To see its usage, runjava com.compoze.exchange.webdav.WebdavExerciser with no arguments.


Constructor Summary
WebdavExerciser(Session session, boolean bCleanup, boolean bServerRefresh)
          Constructor.
 
Method Summary
 void addAttachment(AbstractMessage message)
          Adds an attachment to the message.
 void dumpAppointmentProperties(Appointment appointment)
          Dumps the properties of an appointment.
 void dumpAttachmentInformantion(Attachment attachment)
          Dumps attachment information.
 void dumpAttachments(java.util.List attachments)
          Dumps a list of attachments.
 void dumpContact(Contact contact, boolean bShort)
          Dumps the information for a single contact.
 void dumpDistributionList(DistributionList dl)
          Dumps the information for a single contact.
 void dumpDocument(Document document)
          Dumps the information for a document.
 void dumpFolder(Folder folder)
          Dumps the information for a single folder.
 void dumpItem(IItem item)
          Dumps the information for a single item
 void dumpJournalEntry(JournalEntry entry)
          Dumps the information for a single journal entry.
 void dumpMessage(Message message)
          Dumps the information for a single message.
 void dumpNote(Note note)
          Dumps the information for a single note.
 void dumpReport(Report report)
          Dumps the information for a single report.
 void dumpTask(Task task)
          Dumps the information for a single task.
static void main(java.lang.String[] args)
          Main (run with no arguments for usage).
 void testAppointments()
          Test appointment functionality.
 void testAttachments()
          Test for manipulating attachments in the Exchange Store.
 void testContacts()
          Test contact functionality.
 void testCopyAppointment()
          Test for requesting the server to copy appointment from default "Calendar" to another folder.
 void testCopyContact()
          Test for requesting the server to copy contact from default "Contact" folder to another folder.
 void testCreateAllDayAppointment()
          Test for requesting the server to create an all day appointment.
 void testCreateAppointment()
          Test for requesting the server to create an appointment.
 void testCreateAppointmentWithAttachment()
          Test for requesting the server to create an appointment.
 void testCreateAppointmentWithTimeZone()
          Test for requesting the server to create an appointment with the timezone field (urn:schemase:calendar:timezone) set.
 void testCreateContact()
          Test for requesting the server to create a contact
 void testCreateMonthlyAppointment1()
          Test for requesting the server to create a monthly appointment.
 void testCreateMonthlyAppointment2()
          Test for requesting the server to create a monthly appointment.
 void testCreateRecurringAppointmentWithTimeZone()
          Test for requesting the server to create a weekly appointment with the urn:schemase:calendar:timezone field set.
 void testCreateWeeklyAppointment1()
          Test for requesting the server to create a weekly appointment.
 void testCreateWeeklyAppointment2()
          Test for requesting the server to create a weekly appointment.
 void testCreateYearlyAppointment1()
          Test for requesting the server to create a yearly appointment.
 void testDocuments()
          Test for manipulating documents in the Public Exchange Store.
 void testEditAppointment()
          Test for requesting the server to edit an appointment.
 void testEditContact()
          Test for requesting the server to create a contact
 void testFolders()
          Tests manipulating folders in the user mailbox.
 void testGetAppointments(java.util.List properties, java.util.Date startDate, java.util.Date endDate, boolean bExcludeMasterInstance, SortOrder order, RowRange range)
          Test querying the server for a list of appointments.
 void testGetAppointments(java.util.List properties, java.util.Date startDate, java.util.Date endDate, SortOrder order, RowRange range)
          Test querying the server for a list of appointments.
 void testGetContacts(java.util.List properties, SortOrder order, RowRange range)
          Test for requesting the server to create a contact
 void testJournalEntries()
          Test for manipulating journal entries in the Exchange Store.
 void testLoad()
          Test load.
 void testMeetings()
          Test for manipulating meetings (requests) in the Exchange Store.
 void testMessages()
          Test for manipulating messages in the Exchange Store.
 void testMoveAppointment()
          Test for requesting the server to move appointment from default "Calendar" to another folder.
 void testMoveContact()
          Test for requesting the server to move contact from default "Contacts" folder to another folder.
 void testNotes()
          Test for manipulating notes in the Exchange Store.
 void testPublicCalendar()
          Test for manipulating appointments in the Public Exchange Store.
 void testPublicContacts()
          Test for manipulating contacts in the Public Exchange Store.
 void testPublicFolders()
          Tests manipulating folders in the Public Exchange Store.
 void testPublicMail()
          Test for manipulating messages in the Public Exchange Store.
 void testSession()
          Tests a session to the Exchange Store over WebDAV.
 void testTasks()
          Test for manipulating tasks in the Exchange Store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebdavExerciser


public WebdavExerciser(Session session,
                       boolean bCleanup,
                       boolean bServerRefresh)
                throws ExchangeException
Constructor.
Parameters:
session - the session connecting to the Exchange store over WebDAV protocol
Method Detail

testSession


public void testSession()
                 throws ActiveDirectoryException,
                        ExchangeException
Tests a session to the Exchange Store over WebDAV.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange

testFolders


public void testFolders()
                 throws ExchangeException
Tests manipulating folders in the user mailbox.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange

dumpFolder


public void dumpFolder(Folder folder)
                throws ExchangeException
Dumps the information for a single folder.
Parameters:
folder - the folder to dump information

testLoad


public void testLoad()
              throws ExchangeException,
                     java.net.MalformedURLException
Test load.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange

testContacts


public void testContacts()
                  throws ExchangeException,
                         java.net.MalformedURLException
Test contact functionality.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange

testGetContacts


public void testGetContacts(java.util.List properties,
                            SortOrder order,
                            RowRange range)
                     throws ExchangeException
Test for requesting the server to create a contact
Parameters:
properties - list of AbstractProperty objects representing Exchange WebDAV properties to query from the Exchange store (must not be null)
order - the order to sort by
range - the range of rows to return
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testCreateContact


public void testCreateContact()
                       throws ExchangeException,
                              java.net.MalformedURLException
Test for requesting the server to create a contact
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testEditContact


public void testEditContact()
                     throws ExchangeException,
                            java.net.MalformedURLException
Test for requesting the server to create a contact
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testMoveContact


public void testMoveContact()
                     throws ExchangeException
Test for requesting the server to move contact from default "Contacts" folder to another folder.
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testCopyContact


public void testCopyContact()
                     throws ExchangeException
Test for requesting the server to copy contact from default "Contact" folder to another folder.
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

dumpContact


public void dumpContact(Contact contact,
                        boolean bShort)
                 throws ExchangeException
Dumps the information for a single contact.
Parameters:
contact - the contact to dump

dumpDistributionList


public void dumpDistributionList(DistributionList dl)
                          throws ExchangeException
Dumps the information for a single contact.
Parameters:
contact - the contact to dump

testAppointments


public void testAppointments()
                      throws ExchangeException
Test appointment functionality.
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testGetAppointments


public void testGetAppointments(java.util.List properties,
                                java.util.Date startDate,
                                java.util.Date endDate,
                                SortOrder order,
                                RowRange range)
                         throws ExchangeException
Test querying the server for a list of appointments.
Parameters:
properties - list of AbstractProperty objects representing Exchange WebDAV properties to query from the Exchange store (must not be null)
startDate - the start date (inclusive)
endDate - the end date (exclusive)
order - the order to sort by
range - the range of rows to return
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testGetAppointments


public void testGetAppointments(java.util.List properties,
                                java.util.Date startDate,
                                java.util.Date endDate,
                                boolean bExcludeMasterInstance,
                                SortOrder order,
                                RowRange range)
                         throws ExchangeException
Test querying the server for a list of appointments.
Parameters:
properties - list of AbstractProperty objects representing Exchange WebDAV properties to query from the Exchange store (must not be null)
startDate - the start date (inclusive)
endDate - the end date (exclusive)
bExcludeMasterInstance - true to exclude all master instances of recurring appointments
order - the order to sort by
range - the range of rows to return
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testCreateAppointment


public void testCreateAppointment()
                           throws ExchangeException
Test for requesting the server to create an appointment.
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testCreateAppointmentWithTimeZone


public void testCreateAppointmentWithTimeZone()
                                       throws ExchangeException
Test for requesting the server to create an appointment with the timezone field (urn:schemase:calendar:timezone) set.
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testCreateAppointmentWithAttachment


public void testCreateAppointmentWithAttachment()
                                         throws ExchangeException
Test for requesting the server to create an appointment.
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testCreateAllDayAppointment


public void testCreateAllDayAppointment()
                                 throws ExchangeException
Test for requesting the server to create an all day appointment.
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testEditAppointment


public void testEditAppointment()
                         throws ExchangeException
Test for requesting the server to edit an appointment.
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testMoveAppointment


public void testMoveAppointment()
                         throws ExchangeException
Test for requesting the server to move appointment from default "Calendar" to another folder.
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testCopyAppointment


public void testCopyAppointment()
                         throws ExchangeException
Test for requesting the server to copy appointment from default "Calendar" to another folder.
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testCreateWeeklyAppointment1


public void testCreateWeeklyAppointment1()
                                  throws ExchangeException
Test for requesting the server to create a weekly appointment.
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testCreateWeeklyAppointment2


public void testCreateWeeklyAppointment2()
                                  throws ExchangeException
Test for requesting the server to create a weekly appointment.
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testCreateYearlyAppointment1


public void testCreateYearlyAppointment1()
                                  throws ExchangeException
Test for requesting the server to create a yearly appointment.
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testCreateMonthlyAppointment1


public void testCreateMonthlyAppointment1()
                                   throws ExchangeException
Test for requesting the server to create a monthly appointment.
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testCreateMonthlyAppointment2


public void testCreateMonthlyAppointment2()
                                   throws ExchangeException
Test for requesting the server to create a monthly appointment.
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testCreateRecurringAppointmentWithTimeZone


public void testCreateRecurringAppointmentWithTimeZone()
                                                throws ExchangeException
Test for requesting the server to create a weekly appointment with the urn:schemase:calendar:timezone field set.
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

dumpAppointmentProperties


public void dumpAppointmentProperties(Appointment appointment)
                               throws ExchangeException
Dumps the properties of an appointment.
Parameters:
appointment - the appointment to dump
Throws:
ExchangeException - if a problem occurred while interacting with the Exchange store

testMeetings


public void testMeetings()
                  throws ExchangeException,
                         InvalidRuleException
Test for manipulating meetings (requests) in the Exchange Store.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange

testMessages


public void testMessages()
                  throws ExchangeException
Test for manipulating messages in the Exchange Store.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange

testAttachments


public void testAttachments()
                     throws ExchangeException
Test for manipulating attachments in the Exchange Store.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange

addAttachment


public void addAttachment(AbstractMessage message)
                   throws ExchangeException
Adds an attachment to the message.
Parameters:
message - the message to add the attachment to.

dumpMessage


public void dumpMessage(Message message)
                 throws ExchangeException
Dumps the information for a single message.
Parameters:
message - the message to dump

dumpReport


public void dumpReport(Report report)
                throws ExchangeException
Dumps the information for a single report.
Parameters:
report - the report to dump.
Throws:
ExchangeException -  

testDocuments


public void testDocuments()
                   throws ExchangeException
Test for manipulating documents in the Public Exchange Store.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange Server.

dumpDocument


public void dumpDocument(Document document)
                  throws ExchangeException
Dumps the information for a document.
Parameters:
document - the document to dump.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange Server.

testNotes


public void testNotes()
               throws ExchangeException
Test for manipulating notes in the Exchange Store. Please note, there is limited functionality for a note in the Exchange Store.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange.

dumpNote


public void dumpNote(Note note)
              throws ExchangeException
Dumps the information for a single note.
Parameters:
note - the note to dump.
Throws:
ExchangeException -  

testJournalEntries


public void testJournalEntries()
                        throws ExchangeException
Test for manipulating journal entries in the Exchange Store. Please note, there is limited functionality for a journal entry in the Exchange store.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange.

dumpJournalEntry


public void dumpJournalEntry(JournalEntry entry)
                      throws ExchangeException
Dumps the information for a single journal entry.
Parameters:
entry - the journal entry to dump.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange.

testTasks


public void testTasks()
               throws ExchangeException
Test for manipulating tasks in the Exchange Store. Please note, there is limited functionality for a task in the Exchange store.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange.

dumpTask


public void dumpTask(Task task)
              throws ExchangeException
Dumps the information for a single task.
Parameters:
task - the task to dump.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange.

dumpItem


public void dumpItem(IItem item)
              throws ExchangeException
Dumps the information for a single item
Parameters:
item - the item to dump

dumpAttachments


public void dumpAttachments(java.util.List attachments)
Dumps a list of attachments.

dumpAttachmentInformantion


public void dumpAttachmentInformantion(Attachment attachment)
Dumps attachment information.
Parameters:
attachment - the attachment to dump.

testPublicFolders


public void testPublicFolders()
                       throws ExchangeException
Tests manipulating folders in the Public Exchange Store.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange

testPublicContacts


public void testPublicContacts()
                        throws ExchangeException
Test for manipulating contacts in the Public Exchange Store.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange

testPublicCalendar


public void testPublicCalendar()
                        throws ExchangeException,
                               InvalidRuleException
Test for manipulating appointments in the Public Exchange Store.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange

testPublicMail


public void testPublicMail()
                    throws ExchangeException
Test for manipulating messages in the Public Exchange Store.
Throws:
ExchangeException - if a problem occurred while connecting to or interacting with Exchange

main


public static void main(java.lang.String[] args)
                 throws java.lang.Throwable
Main (run with no arguments for usage).
Parameters:
args - command line arguments

Compoze Software, Inc.

Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.