tdf#101094 (3) OPTIONS: Add options implem. in DAV resource access.

Change-Id: I186a77739b40cd89a8a918fd22379eb4240292ff
Reviewed-on: https://gerrit.libreoffice.org/27607
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
This commit is contained in:
Giuseppe Castagno
2016-01-09 20:22:37 +01:00
parent 538ea31c99
commit f30184cc28
2 changed files with 12 additions and 16 deletions

View File

@@ -164,34 +164,34 @@ DAVResourceAccess & DAVResourceAccess::operator=(
return *this;
}
#if 0 // currently not used, but please don't remove code
void DAVResourceAccess::OPTIONS(
DAVCapabilities & rCapabilities,
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
throw( DAVException )
DAVOptions & rOptions,
const css::uno::Reference<
css::ucb::XCommandEnvironment > & xEnv )
throw ( DAVException )
{
initialize();
bool bRetry;
int errorCount = 0;
bool bRetry;
do
{
bRetry = false;
try
{
DAVRequestHeaders aHeaders;
getUserRequestHeaders( xEnv,
getRequestURI(),
OUString( "OPTIONS" ),
css::ucb::WebDAVHTTPMethod_OPTIONS,
aHeaders );
m_xSession->OPTIONS( getRequestURI(),
rCapabilities,
rOptions,
DAVRequestEnvironment(
getRequestURI(),
new DAVAuthListener_Impl( xEnv, m_aURL ),
aHeaders, xEnv) );
aHeaders, xEnv ) );
}
catch ( const DAVException & e )
{
@@ -203,8 +203,6 @@ void DAVResourceAccess::OPTIONS(
}
while ( bRetry );
}
#endif
void DAVResourceAccess::PROPFIND(
const Depth nDepth,

View File

@@ -86,13 +86,11 @@ public:
// DAV methods
#if 0 // currently not used, but please don't remove code
void
OPTIONS( DAVCapabilities & rCapabilities,
const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv )
OPTIONS( DAVOptions & rOptions,
const css::uno::Reference<
css::ucb::XCommandEnvironment > & xEnv )
throw ( DAVException );
#endif
// allprop & named
void