Class SardineUtil
java.lang.Object
com.github.sardine.util.SardineUtil
Basic utility code. I borrowed some code from the webdavlib for
parsing dates.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementcreateElement(QName key) static ElementcreateElement(Element parent, QName key) static QNamestatic QNamestatic DateLoops over all the possible date formats and tries to find the right one.static QNamestatic Stringstatic <T> Tunmarshal(InputStream in)
-
Field Details
-
CUSTOM_NAMESPACE_PREFIX
-
CUSTOM_NAMESPACE_URI
-
DEFAULT_NAMESPACE_PREFIX
-
DEFAULT_NAMESPACE_URI
-
-
Method Details
-
parseDate
-
unmarshal
- Throws:
IOException
-
toXml
- Parameters:
jaxbElement- An object from the model- Returns:
- The XML string for the WebDAV request
- Throws:
RuntimeException- When there is a JAXB errorIOException
-
toQName
-
toQName
-
toQName
-
createQNameWithCustomNamespace
-
createQNameWithDefaultNamespace
-
createElement
-
createElement
-