XRootD
Loading...
Searching...
No Matches
XrdClHttp::Factory Class Referencefinal

#include <XrdClHttpFactory.hh>

Inheritance diagram for XrdClHttp::Factory:
Collaboration diagram for XrdClHttp::Factory:

Public Member Functions

 Factory ()
virtual XrdCl::FilePlugInCreateFile (const std::string &url) override
 Create a file plug-in for the given URL.
virtual XrdCl::FileSystemPlugInCreateFileSystem (const std::string &url) override
 Create a file system plug-in for the given URL.
void Produce (std::unique_ptr< XrdClHttp::CurlOperation > operation)
Public Member Functions inherited from XrdCl::PlugInFactory
virtual ~PlugInFactory ()
 Destructor.

Static Public Member Functions

static struct timespec GetHeaderTimeoutWithDefault (time_t oper_timeout)

Detailed Description

Definition at line 44 of file XrdClHttpFactory.hh.

Constructor & Destructor Documentation

◆ Factory()

XrdClHttp::Factory::Factory ( )
inline

Definition at line 46 of file XrdClHttpFactory.hh.

46{}

Referenced by GetHeaderTimeoutWithDefault().

Here is the caller graph for this function:

Member Function Documentation

◆ CreateFile()

virtual XrdCl::FilePlugIn * XrdClHttp::Factory::CreateFile ( const std::string & url)
overridevirtual

Create a file plug-in for the given URL.

Implements XrdCl::PlugInFactory.

◆ CreateFileSystem()

virtual XrdCl::FileSystemPlugIn * XrdClHttp::Factory::CreateFileSystem ( const std::string & url)
overridevirtual

Create a file system plug-in for the given URL.

Implements XrdCl::PlugInFactory.

References GetHeaderTimeoutWithDefault().

Here is the call graph for this function:

◆ GetHeaderTimeoutWithDefault()

struct timespec Factory::GetHeaderTimeoutWithDefault ( time_t oper_timeout)
static

Definition at line 43 of file XrdClHttpFactory.cc.

44{
45 if (oper_timeout == 0) {
47 XrdCl::DefaultEnv::GetEnv()->GetInt( "RequestTimeout", val );
48 oper_timeout = val;
49 }
50 if (oper_timeout <= 0) {
51 return {0, 0};
52 }
53 return {oper_timeout, 0};
54}
static Env * GetEnv()
Get default client environment.
bool GetInt(const std::string &key, int &value)
Definition XrdClEnv.cc:89
const int DefaultRequestTimeout

References Factory(), XrdCl::DefaultRequestTimeout, XrdCl::DefaultEnv::GetEnv(), GetHeaderTimeoutWithDefault(), and XrdCl::Env::GetInt().

Referenced by CreateFileSystem(), XrdClHttp::Filesystem::DirList(), GetHeaderTimeoutWithDefault(), XrdClHttp::Filesystem::MkDir(), XrdClHttp::Filesystem::Query(), XrdClHttp::Filesystem::Rm(), and XrdClHttp::Filesystem::Stat().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Produce()

void Factory::Produce ( std::unique_ptr< XrdClHttp::CurlOperation > operation)

Definition at line 334 of file XrdClHttpFactory.cc.

335{
336 m_queue->Produce(std::move(operation));
337}

References Produce().

Referenced by Produce().

Here is the call graph for this function:
Here is the caller graph for this function:

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