org.apache.wvcm.store.webdav
Class WebdavProperties

java.lang.Object
  extended by org.apache.wvcm.store.webdav.WebdavProperties

public class WebdavProperties
extends java.lang.Object

Provides convenience methods for the handling of WebDAV properties. Translates property name into WebDAV names and vice versa.

Version:
$Revision: 1.1.1.1.2.2 $

Constructor Summary
WebdavProperties()
           
 
Method Summary
static java.util.Locale languageTagToLocale(java.lang.String languageTag)
          Convert language-tag [RFC2616, Sec 3.10] to Locale
static java.lang.String localeToLanguageTag(java.util.Locale locale)
          Convert Locale to language-tag [RFC2616, Sec 3.10]
static PropertyNameList.PropertyName propertyNameForWebdavName(java.lang.String webdavName)
          Get the PropertyName string for the specified WebDAV property.
static java.lang.String webdavNameForPropertyName(PropertyNameList.PropertyName propertyName)
          Get the WebDAV name for the specified PropertyName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebdavProperties

public WebdavProperties()
Method Detail

webdavNameForPropertyName

public static java.lang.String webdavNameForPropertyName(PropertyNameList.PropertyName propertyName)
Get the WebDAV name for the specified PropertyName

Parameters:
propertyName - the property name
Returns:
the WebDAV name

propertyNameForWebdavName

public static PropertyNameList.PropertyName propertyNameForWebdavName(java.lang.String webdavName)
Get the PropertyName string for the specified WebDAV property.

Parameters:
webdavName - the WebDAV property name
Returns:
a PropertyName (null if no matching property)

languageTagToLocale

public static java.util.Locale languageTagToLocale(java.lang.String languageTag)
Convert language-tag [RFC2616, Sec 3.10] to Locale

Parameters:
languageTag - a String
Returns:
a Locale

localeToLanguageTag

public static java.lang.String localeToLanguageTag(java.util.Locale locale)
Convert Locale to language-tag [RFC2616, Sec 3.10]

Parameters:
locale - a Locale
Returns:
a String


Copyright (c) 2003 - Apache Software Foundation