DAVResourceAccess.cxx (49989859) DAVResourceAccess.cxx (c5b3447d)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 452 unchanged lines hidden (view full) ---

461 }
462 }
463 while ( bRetry );
464
465 return xStream;
466}
467
468//=========================================================================
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 452 unchanged lines hidden (view full) ---

461 }
462 }
463 while ( bRetry );
464
465 return xStream;
466}
467
468//=========================================================================
469uno::Reference< io::XInputStream > DAVResourceAccess::GET(
470 DAVRequestHeaders &rRequestHeaders,
471 const std::vector< rtl::OUString > & rHeaderNames,
472 DAVResource & rResource,
473 const uno::Reference< ucb::XCommandEnvironment > & xEnv )
474 throw( DAVException )
475{
476 initialize();
477
478 uno::Reference< io::XInputStream > xStream;
479 int errorCount = 0;
480 bool bRetry;
481 do
482 {
483 bRetry = false;
484 try
485 {
486 getUserRequestHeaders( xEnv,
487 getRequestURI(),
488 rtl::OUString::createFromAscii( "GET" ),
489 rRequestHeaders );
490
491 xStream = m_xSession->GET( getRequestURI(),
492 rHeaderNames,
493 rResource,
494 DAVRequestEnvironment(
495 getRequestURI(),
496 new DAVAuthListener_Impl(
497 xEnv, m_aURL ),
498 rRequestHeaders, xEnv ) );
499 }
500 catch ( DAVException & e )
501 {
502 errorCount++;
503 bRetry = handleException( e, errorCount );
504 if ( !bRetry )
505 throw;
506 }
507 }
508 while ( bRetry );
509
510 return xStream;
511}
512
513//=========================================================================
469void DAVResourceAccess::GET(
470 uno::Reference< io::XOutputStream > & rStream,
471 const std::vector< rtl::OUString > & rHeaderNames,
472 DAVResource & rResource,
473 const uno::Reference< ucb::XCommandEnvironment > & xEnv )
474 throw( DAVException )
475{
476 initialize();

--- 700 unchanged lines hidden ---
514void DAVResourceAccess::GET(
515 uno::Reference< io::XOutputStream > & rStream,
516 const std::vector< rtl::OUString > & rHeaderNames,
517 DAVResource & rResource,
518 const uno::Reference< ucb::XCommandEnvironment > & xEnv )
519 throw( DAVException )
520{
521 initialize();

--- 700 unchanged lines hidden ---