LibreOffice Module ucb (master)  1
Public Member Functions | Public Attributes | List of all members
http_dav_ucp::SerfRequestProcessor Class Reference

#include <SerfRequestProcessor.hxx>

Collaboration diagram for http_dav_ucp::SerfRequestProcessor:
[legend]

Public Member Functions

 SerfRequestProcessor (SerfSession &rSerfSession, const OUString &inPath, const bool bUseChunkedEncoding)
 
 ~SerfRequestProcessor ()
 
bool processPropFind (const Depth inDepth, const std::vector< OUString > &inPropNames, std::vector< DAVResource > &ioResources, apr_status_t &outSerfStatus)
 
bool processPropFind (const Depth inDepth, std::vector< DAVResourceInfo > &ioResInfo, apr_status_t &outSerfStatus)
 
bool processPropPatch (const std::vector< ProppatchValue > &inProperties, apr_status_t &outSerfStatus)
 
bool processGet (const rtl::Reference< SerfInputStream > &xioInStrm, apr_status_t &outSerfStatus)
 
bool processGet (const rtl::Reference< SerfInputStream > &xioInStrm, const std::vector< OUString > &inHeaderNames, DAVResource &ioResource, apr_status_t &outSerfStatus)
 
bool processGet (const css::uno::Reference< css::io::XOutputStream > &xioOutStrm, apr_status_t &outSerfStatus)
 
bool processGet (const css::uno::Reference< css::io::XOutputStream > &xioOutStrm, const std::vector< OUString > &inHeaderNames, DAVResource &ioResource, apr_status_t &outSerfStatus)
 
bool processHead (const std::vector< OUString > &inHeaderNames, DAVResource &ioResource, apr_status_t &outSerfStatus)
 
bool processPut (const char *inData, apr_size_t inDataLen, apr_status_t &outSerfStatus)
 
bool processPost (const char *inData, apr_size_t inDataLen, const OUString &inContentType, const OUString &inReferer, const rtl::Reference< SerfInputStream > &xioInStrm, apr_status_t &outSerfStatus)
 
bool processPost (const char *inData, apr_size_t inDataLen, const OUString &inContentType, const OUString &inReferer, const css::uno::Reference< css::io::XOutputStream > &xioOutStrm, apr_status_t &outSerfStatus)
 
bool processDelete (apr_status_t &outSerfStatus)
 
bool processMkCol (apr_status_t &outSerfStatus)
 
bool processCopy (const OUString &inDestinationPath, const bool inOverwrite, apr_status_t &outSerfStatus)
 
bool processMove (const OUString &inDestinationPath, const bool inOverwrite, apr_status_t &outSerfStatus)
 
bool processLock (const css::ucb::Lock &rLock, sal_Int32 *plastChanceToSendRefreshRequest=nullptr)
 
bool processUnlock ()
 
apr_status_t provideSerfCredentials (char **outUsername, char **outPassword, serf_request_t *inRequest, int inCode, const char *inAuthProtocol, const char *inRealm, apr_pool_t *inAprPool)
 
apr_status_t setupSerfRequest (serf_request_t *inSerfRequest, serf_bucket_t **outSerfRequestBucket, serf_response_acceptor_t *outSerfResponseAcceptor, void **outSerfResponseAcceptorBaton, serf_response_handler_t *outSerfResponseHandler, void **outSerfResponseHandlerBaton, apr_pool_t *inAprPool)
 
serf_bucket_t * acceptSerfResponse (serf_request_t *inSerfRequest, serf_bucket_t *inSerfStreamBucket, apr_pool_t *inAprPool)
 
apr_status_t handleSerfResponse (serf_request_t *inSerfRequest, serf_bucket_t *inSerfResponseBucket, apr_pool_t *inAprPool)
 
void prepareProcessor ()
 
apr_status_t runProcessor ()
 
void postprocessProcessor (const apr_status_t inStatus)
 

Public Attributes

SerfSessionmrSerfSession
 
const char * mPathStr
 
const bool mbUseChunkedEncoding
 
const char * mDestPathStr
 
const char * mContentType
 
const char * mReferer
 
SerfRequestProcessorImplmpProcImpl
 
bool mbProcessingDone
 
DAVExceptionmpDAVException
 
sal_uInt16 mnHTTPStatusCode
 
OUString mHTTPStatusCodeText
 
OUString mRedirectLocation
 
sal_uInt8 mnSuccessfulCredentialAttempts
 
bool mbInputOfCredentialsAborted
 
bool mbSetupSerfRequestCalled
 
bool mbAcceptSerfResponseCalled
 
bool mbHandleSerfResponseCalled
 

Detailed Description

Definition at line 45 of file SerfRequestProcessor.hxx.

Constructor & Destructor Documentation

http_dav_ucp::SerfRequestProcessor::SerfRequestProcessor ( SerfSession rSerfSession,
const OUString &  inPath,
const bool  bUseChunkedEncoding 
)
http_dav_ucp::SerfRequestProcessor::~SerfRequestProcessor ( )

Definition at line 68 of file SerfRequestProcessor.cxx.

References mpDAVException, and mpProcImpl.

Member Function Documentation

serf_bucket_t * http_dav_ucp::SerfRequestProcessor::acceptSerfResponse ( serf_request_t *  inSerfRequest,
serf_bucket_t *  inSerfStreamBucket,
apr_pool_t *  inAprPool 
)
apr_status_t http_dav_ucp::SerfRequestProcessor::handleSerfResponse ( serf_request_t *  inSerfRequest,
serf_bucket_t *  inSerfResponseBucket,
apr_pool_t *  inAprPool 
)
void http_dav_ucp::SerfRequestProcessor::postprocessProcessor ( const apr_status_t  inStatus)
void http_dav_ucp::SerfRequestProcessor::prepareProcessor ( )
bool http_dav_ucp::SerfRequestProcessor::processCopy ( const OUString &  inDestinationPath,
const bool  inOverwrite,
apr_status_t &  outSerfStatus 
)
bool http_dav_ucp::SerfRequestProcessor::processDelete ( apr_status_t &  outSerfStatus)
bool http_dav_ucp::SerfRequestProcessor::processGet ( const rtl::Reference< SerfInputStream > &  xioInStrm,
apr_status_t &  outSerfStatus 
)
bool http_dav_ucp::SerfRequestProcessor::processGet ( const rtl::Reference< SerfInputStream > &  xioInStrm,
const std::vector< OUString > &  inHeaderNames,
DAVResource ioResource,
apr_status_t &  outSerfStatus 
)
bool http_dav_ucp::SerfRequestProcessor::processGet ( const css::uno::Reference< css::io::XOutputStream > &  xioOutStrm,
apr_status_t &  outSerfStatus 
)
bool http_dav_ucp::SerfRequestProcessor::processGet ( const css::uno::Reference< css::io::XOutputStream > &  xioOutStrm,
const std::vector< OUString > &  inHeaderNames,
DAVResource ioResource,
apr_status_t &  outSerfStatus 
)
bool http_dav_ucp::SerfRequestProcessor::processHead ( const std::vector< OUString > &  inHeaderNames,
DAVResource ioResource,
apr_status_t &  outSerfStatus 
)
bool http_dav_ucp::SerfRequestProcessor::processLock ( const css::ucb::Lock &  rLock,
sal_Int32 *  plastChanceToSendRefreshRequest = nullptr 
)
bool http_dav_ucp::SerfRequestProcessor::processMkCol ( apr_status_t &  outSerfStatus)
bool http_dav_ucp::SerfRequestProcessor::processMove ( const OUString &  inDestinationPath,
const bool  inOverwrite,
apr_status_t &  outSerfStatus 
)
bool http_dav_ucp::SerfRequestProcessor::processPost ( const char *  inData,
apr_size_t  inDataLen,
const OUString &  inContentType,
const OUString &  inReferer,
const rtl::Reference< SerfInputStream > &  xioInStrm,
apr_status_t &  outSerfStatus 
)
bool http_dav_ucp::SerfRequestProcessor::processPost ( const char *  inData,
apr_size_t  inDataLen,
const OUString &  inContentType,
const OUString &  inReferer,
const css::uno::Reference< css::io::XOutputStream > &  xioOutStrm,
apr_status_t &  outSerfStatus 
)
bool http_dav_ucp::SerfRequestProcessor::processPropFind ( const Depth  inDepth,
const std::vector< OUString > &  inPropNames,
std::vector< DAVResource > &  ioResources,
apr_status_t &  outSerfStatus 
)
bool http_dav_ucp::SerfRequestProcessor::processPropFind ( const Depth  inDepth,
std::vector< DAVResourceInfo > &  ioResInfo,
apr_status_t &  outSerfStatus 
)
bool http_dav_ucp::SerfRequestProcessor::processPropPatch ( const std::vector< ProppatchValue > &  inProperties,
apr_status_t &  outSerfStatus 
)
bool http_dav_ucp::SerfRequestProcessor::processPut ( const char *  inData,
apr_size_t  inDataLen,
apr_status_t &  outSerfStatus 
)
bool http_dav_ucp::SerfRequestProcessor::processUnlock ( )
apr_status_t http_dav_ucp::SerfRequestProcessor::provideSerfCredentials ( char **  outUsername,
char **  outPassword,
serf_request_t *  inRequest,
int  inCode,
const char *  inAuthProtocol,
const char *  inRealm,
apr_pool_t *  inAprPool 
)
apr_status_t http_dav_ucp::SerfRequestProcessor::runProcessor ( )
apr_status_t http_dav_ucp::SerfRequestProcessor::setupSerfRequest ( serf_request_t *  inSerfRequest,
serf_bucket_t **  outSerfRequestBucket,
serf_response_acceptor_t *  outSerfResponseAcceptor,
void **  outSerfResponseAcceptorBaton,
serf_response_handler_t *  outSerfResponseHandler,
void **  outSerfResponseHandlerBaton,
apr_pool_t *  inAprPool 
)

Member Data Documentation

bool http_dav_ucp::SerfRequestProcessor::mbAcceptSerfResponseCalled

Definition at line 183 of file SerfRequestProcessor.hxx.

Referenced by acceptSerfResponse(), and prepareProcessor().

bool http_dav_ucp::SerfRequestProcessor::mbHandleSerfResponseCalled

Definition at line 184 of file SerfRequestProcessor.hxx.

Referenced by handleSerfResponse(), and prepareProcessor().

bool http_dav_ucp::SerfRequestProcessor::mbInputOfCredentialsAborted
bool http_dav_ucp::SerfRequestProcessor::mbProcessingDone

Definition at line 173 of file SerfRequestProcessor.hxx.

Referenced by handleSerfResponse(), and runProcessor().

bool http_dav_ucp::SerfRequestProcessor::mbSetupSerfRequestCalled
const bool http_dav_ucp::SerfRequestProcessor::mbUseChunkedEncoding

Definition at line 167 of file SerfRequestProcessor.hxx.

Referenced by runProcessor().

const char* http_dav_ucp::SerfRequestProcessor::mContentType

Definition at line 169 of file SerfRequestProcessor.hxx.

Referenced by processPost().

const char* http_dav_ucp::SerfRequestProcessor::mDestPathStr

Definition at line 168 of file SerfRequestProcessor.hxx.

Referenced by processCopy(), and processMove().

OUString http_dav_ucp::SerfRequestProcessor::mHTTPStatusCodeText
sal_uInt16 http_dav_ucp::SerfRequestProcessor::mnHTTPStatusCode
sal_uInt8 http_dav_ucp::SerfRequestProcessor::mnSuccessfulCredentialAttempts

Definition at line 180 of file SerfRequestProcessor.hxx.

Referenced by prepareProcessor(), and provideSerfCredentials().

const char* http_dav_ucp::SerfRequestProcessor::mPathStr
DAVException* http_dav_ucp::SerfRequestProcessor::mpDAVException
SerfRequestProcessorImpl* http_dav_ucp::SerfRequestProcessor::mpProcImpl
OUString http_dav_ucp::SerfRequestProcessor::mRedirectLocation
const char* http_dav_ucp::SerfRequestProcessor::mReferer

Definition at line 170 of file SerfRequestProcessor.hxx.

Referenced by processPost().

SerfSession& http_dav_ucp::SerfRequestProcessor::mrSerfSession

The documentation for this class was generated from the following files: