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:
@@ -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,
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user