summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/webdav/DAVResourceAccess.cxx
diff options
context:
space:
mode:
authorKai Sommerfeld <kso@openoffice.org>2002-08-29 08:00:14 +0000
committerKai Sommerfeld <kso@openoffice.org>2002-08-29 08:00:14 +0000
commit5bf06351b7f8419591d4afef4eae88a0b8e444b7 (patch)
treeffa7dbc99d4ed26499703db2e66db2bdbe0269d1 /ucb/source/ucp/webdav/DAVResourceAccess.cxx
parent3ce2ac71b999447027b52cd3423ac40bcf3e919c (diff)
#96458# - Properties MediaType, Size and DateModified now can be obtained
for Non-DAV resources as well; using HEAD request.
Diffstat (limited to 'ucb/source/ucp/webdav/DAVResourceAccess.cxx')
-rw-r--r--ucb/source/ucp/webdav/DAVResourceAccess.cxx31
1 files changed, 29 insertions, 2 deletions
diff --git a/ucb/source/ucp/webdav/DAVResourceAccess.cxx b/ucb/source/ucp/webdav/DAVResourceAccess.cxx
index a4b9a9a71d35..9ab2ddb85627 100644
--- a/ucb/source/ucp/webdav/DAVResourceAccess.cxx
+++ b/ucb/source/ucp/webdav/DAVResourceAccess.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: DAVResourceAccess.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: kso $ $Date: 2002-08-21 07:34:52 $
+ * last change: $Author: kso $ $Date: 2002-08-29 09:00:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -298,6 +298,33 @@ void DAVResourceAccess::PROPPATCH( const std::vector< ProppatchValue >& rValues,
}
//=========================================================================
+void DAVResourceAccess::HEAD( const std::vector< rtl::OUString > & rHeaderNames,
+ std::vector< DAVResource > & rResources,
+ const uno::Reference<
+ ucb::XCommandEnvironment >& xEnv )
+ throw( DAVException )
+{
+ initialize();
+
+ sal_Bool bRetry;
+ do
+ {
+ bRetry = sal_False;
+ try
+ {
+ m_xSession->HEAD( m_aPath, rHeaderNames, rResources, xEnv );
+ }
+ catch ( DAVException & e )
+ {
+ bRetry = handleException( e );
+ if ( !bRetry )
+ throw;
+ }
+ }
+ while ( bRetry );
+}
+
+//=========================================================================
uno::Reference< io::XInputStream > DAVResourceAccess::GET(
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
throw( DAVException )