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;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0 // currently not used, but please don't remove code
|
|
||||||
|
|
||||||
void DAVResourceAccess::OPTIONS(
|
void DAVResourceAccess::OPTIONS(
|
||||||
DAVCapabilities & rCapabilities,
|
DAVOptions & rOptions,
|
||||||
const uno::Reference< ucb::XCommandEnvironment > & xEnv )
|
const css::uno::Reference<
|
||||||
throw( DAVException )
|
css::ucb::XCommandEnvironment > & xEnv )
|
||||||
|
throw ( DAVException )
|
||||||
{
|
{
|
||||||
initialize();
|
initialize();
|
||||||
|
|
||||||
bool bRetry;
|
|
||||||
int errorCount = 0;
|
int errorCount = 0;
|
||||||
|
bool bRetry;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
bRetry = false;
|
bRetry = false;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
DAVRequestHeaders aHeaders;
|
DAVRequestHeaders aHeaders;
|
||||||
|
|
||||||
getUserRequestHeaders( xEnv,
|
getUserRequestHeaders( xEnv,
|
||||||
getRequestURI(),
|
getRequestURI(),
|
||||||
OUString( "OPTIONS" ),
|
css::ucb::WebDAVHTTPMethod_OPTIONS,
|
||||||
aHeaders );
|
aHeaders );
|
||||||
|
|
||||||
m_xSession->OPTIONS( getRequestURI(),
|
m_xSession->OPTIONS( getRequestURI(),
|
||||||
rCapabilities,
|
rOptions,
|
||||||
DAVRequestEnvironment(
|
DAVRequestEnvironment(
|
||||||
getRequestURI(),
|
getRequestURI(),
|
||||||
new DAVAuthListener_Impl( xEnv, m_aURL ),
|
new DAVAuthListener_Impl( xEnv, m_aURL ),
|
||||||
aHeaders, xEnv) );
|
aHeaders, xEnv ) );
|
||||||
}
|
}
|
||||||
catch ( const DAVException & e )
|
catch ( const DAVException & e )
|
||||||
{
|
{
|
||||||
@@ -203,8 +203,6 @@ void DAVResourceAccess::OPTIONS(
|
|||||||
}
|
}
|
||||||
while ( bRetry );
|
while ( bRetry );
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
void DAVResourceAccess::PROPFIND(
|
void DAVResourceAccess::PROPFIND(
|
||||||
const Depth nDepth,
|
const Depth nDepth,
|
||||||
|
@@ -86,13 +86,11 @@ public:
|
|||||||
|
|
||||||
// DAV methods
|
// DAV methods
|
||||||
|
|
||||||
|
|
||||||
#if 0 // currently not used, but please don't remove code
|
|
||||||
void
|
void
|
||||||
OPTIONS( DAVCapabilities & rCapabilities,
|
OPTIONS( DAVOptions & rOptions,
|
||||||
const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv )
|
const css::uno::Reference<
|
||||||
|
css::ucb::XCommandEnvironment > & xEnv )
|
||||||
throw ( DAVException );
|
throw ( DAVException );
|
||||||
#endif
|
|
||||||
|
|
||||||
// allprop & named
|
// allprop & named
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user