com.compoze.exchange.webdav
Class WebdavUtility
java.lang.Object
|
+--com.compoze.exchange.webdav.WebdavUtility
- public class WebdavUtility
- extends java.lang.Object
This class provides helper methods for the WebDAV implementation.
Method Summary |
static java.lang.String |
escapeFilename(java.lang.String sFilename)
Escapes the filname. |
static java.util.Date |
extractWebdavDate(java.lang.String sDate)
Parses a date string from Exchange Store into a Java compatible calendar date
using Greenwich Mean Time. |
static java.util.Date |
extractWebdavDate(java.lang.String sDate,
java.lang.String sDateFormat)
Parses a date string from Exchange Store into a Java compatible calendar date
given a date format. |
static java.lang.String |
formatWebdavDate(java.util.Date date)
Formats a calendar date into a string that is compliant for Exchange Store. |
static java.lang.String |
formatWebdavDate(java.util.Date date,
java.lang.String sDateFormat)
Formats a calendar date into a string that is compliant for Exchange Store. |
static void |
main(java.lang.String[] args)
Method description. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebdavUtility
public WebdavUtility()
formatWebdavDate
public static java.lang.String formatWebdavDate(java.util.Date date)
- Formats a calendar date into a string that is compliant for Exchange Store.
- Parameters:
date
- the date to convert- Returns:
- a string respresentation of the date compliant for Exchange Store
formatWebdavDate
public static java.lang.String formatWebdavDate(java.util.Date date,
java.lang.String sDateFormat)
- Formats a calendar date into a string that is compliant for Exchange Store.
- Parameters:
date
- the date to convert- Returns:
- a string respresentation of the date compliant for Exchange Store
extractWebdavDate
public static java.util.Date extractWebdavDate(java.lang.String sDate)
throws java.text.ParseException
- Parses a date string from Exchange Store into a Java compatible calendar date
using Greenwich Mean Time.
- Parameters:
sDate
- the date string to parse- Returns:
- Java compliant calendar date
extractWebdavDate
public static java.util.Date extractWebdavDate(java.lang.String sDate,
java.lang.String sDateFormat)
throws java.text.ParseException
- Parses a date string from Exchange Store into a Java compatible calendar date
given a date format.
- Parameters:
sDate
- the date string to parsesDateFormat
- the format to parse the date- Returns:
- Java compliant calendar date
escapeFilename
public static java.lang.String escapeFilename(java.lang.String sFilename)
- Escapes the filname.
- Parameters:
sFilename
- the filename to escape- Returns:
- the escaped filename
main
public static void main(java.lang.String[] args)
- Method description.
Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.