INTEGRATION: CWS updatefeed2 (1.22.14); FILE MERGED
2007/01/23 12:35:39 obr 1.22.14.2: #i72055# fixed warnings 2007/01/18 12:49:58 obr 1.22.14.1: #i72055# moved operation out of debug statement + tab -> ws
This commit is contained in:
parent
756f0714da
commit
b0344dbfe3
1 changed files with 24 additions and 17 deletions
|
@ -4,9 +4,9 @@
|
|||
*
|
||||
* $RCSfile: DAVResourceAccess.cxx,v $
|
||||
*
|
||||
* $Revision: 1.22 $
|
||||
* $Revision: 1.23 $
|
||||
*
|
||||
* last change: $Author: kz $ $Date: 2006-12-13 15:04:02 $
|
||||
* last change: $Author: rt $ $Date: 2007-01-29 14:34:47 $
|
||||
*
|
||||
* The Contents of this file are made available subject to
|
||||
* the terms of GNU Lesser General Public License Version 2.1.
|
||||
|
@ -883,25 +883,32 @@ void DAVResourceAccess::getUserRequestHeaders(
|
|||
{
|
||||
if ( xEnv.is() )
|
||||
{
|
||||
uno::Reference< ucb::XWebDAVCommandEnvironment > xDAVEnv(
|
||||
xEnv, uno::UNO_QUERY );
|
||||
if ( xDAVEnv.is() )
|
||||
{
|
||||
uno::Sequence< beans::NamedValue > aRequestHeaders
|
||||
= xDAVEnv->getUserRequestHeaders( rURI, rMethod );
|
||||
uno::Reference< ucb::XWebDAVCommandEnvironment > xDAVEnv(
|
||||
xEnv, uno::UNO_QUERY );
|
||||
|
||||
for ( sal_Int32 n = 0; n < aRequestHeaders.getLength(); ++n )
|
||||
if ( xDAVEnv.is() )
|
||||
{
|
||||
rtl::OUString aValue;
|
||||
OSL_ENSURE( aRequestHeaders[ n ].Value >>= aValue,
|
||||
"DAVResourceAccess::getUserRequestHeaders :"
|
||||
"Value is not a string! Ignoring..." );
|
||||
rRequestHeaders.push_back( DAVRequestHeader(
|
||||
aRequestHeaders[ n ].Name,
|
||||
aValue ) );
|
||||
uno::Sequence< beans::NamedValue > aRequestHeaders
|
||||
= xDAVEnv->getUserRequestHeaders( rURI, rMethod );
|
||||
|
||||
for ( sal_Int32 n = 0; n < aRequestHeaders.getLength(); ++n )
|
||||
{
|
||||
rtl::OUString aValue;
|
||||
sal_Bool isString = aRequestHeaders[ n ].Value >>= aValue;
|
||||
|
||||
if ( !isString )
|
||||
{
|
||||
OSL_ENSURE( isString,
|
||||
"DAVResourceAccess::getUserRequestHeaders :"
|
||||
"Value is not a string! Ignoring..." );
|
||||
}
|
||||
|
||||
rRequestHeaders.push_back( DAVRequestHeader(
|
||||
aRequestHeaders[ n ].Name,
|
||||
aValue ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//=========================================================================
|
||||
|
|
Loading…
Reference in a new issue