xrootd
|
#include <XrdClZipListHandler.hh>
Public Member Functions | |
ZipListHandler (const URL &url, const std::string &path, DirListFlags::Flags flags, ResponseHandler *handler, uint16_t timeout=0) | |
~ZipListHandler () | |
Destructor. More... | |
virtual void | HandleResponse (XrdCl::XRootDStatus *statusptr, XrdCl::AnyObject *responseptr) |
Handle the server response. More... | |
![]() | |
virtual | ~ResponseHandler () |
virtual void | HandleResponseWithHosts (XRootDStatus *status, AnyObject *response, HostList *hostList) |
Private Types | |
enum | Steps { STAT = 0, OPEN = 1, CLOSE = 2, DONE = 4 } |
Private Member Functions | |
void | DoDirList (time_t timeLeft) |
Do normal listing if it is a directory (and not a ZIP archive) More... | |
void | DoZipOpen (time_t timeLeft) |
Open the ZIP archive. More... | |
void | DoZipClose (time_t timeLeft) |
Close the ZIP archive. More... | |
Private Attributes | |
URL | pUrl |
DirListFlags::Flags | pFlags |
ResponseHandler * | pHandler |
uint16_t | pTimeout |
std::unique_ptr< DirectoryList > | pDirList |
time_t | pStartTime |
File | pFile |
ZipArchiveReader | pZip |
int | pStep |
Additional Inherited Members | |
![]() | |
static ResponseHandler * | Wrap (std::function< void(XRootDStatus &, AnyObject &)> func) |
static ResponseHandler * | Wrap (std::function< void(XRootDStatus *, AnyObject *)> func) |
|
private |
Possible steps in ZIP listing
Enumerator | |
---|---|
STAT | |
OPEN | |
CLOSE | |
DONE |
|
inline |
Constructor
url | : endpoint URL |
path | : path to the ZIP |
flags | : listing flags |
handler | : the original response handler |
timeout | : operation timeout |
References XrdCl::DefaultRequestTimeout, XrdCl::DefaultEnv::GetEnv(), XrdCl::Env::GetInt(), pTimeout, pUrl, and XrdCl::URL::SetPath().
|
inline |
Destructor.
|
private |
Do normal listing if it is a directory (and not a ZIP archive)
|
private |
Close the ZIP archive.
|
private |
Open the ZIP archive.
|
virtual |
Handle the server response.
Reimplemented from XrdCl::ResponseHandler.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Referenced by ZipListHandler().
|
private |
Referenced by ZipListHandler().
|
private |