xrdcl_proxy::ProxyPrefixFile Class Reference
#include <ProxyPrefixFile.hh>
List of all members.
Public Member Functions |
| | ProxyPrefixFile () |
| | Constructor.
|
| virtual | ~ProxyPrefixFile () |
| | Destructor.
|
| virtual XRootDStatus | Open (const std::string &url, OpenFlags::Flags flags, Access::Mode mode, ResponseHandler *handler, uint16_t timeout) |
| | Open.
|
| virtual XRootDStatus | Close (ResponseHandler *handler, uint16_t timeout) |
| | Close.
|
| virtual XRootDStatus | Stat (bool force, ResponseHandler *handler, uint16_t timeout) |
| | Stat.
|
| virtual XRootDStatus | Read (uint64_t offset, uint32_t size, void *buffer, ResponseHandler *handler, uint16_t timeout) |
| | Read.
|
| virtual XRootDStatus | Write (uint64_t offset, uint32_t size, const void *buffer, ResponseHandler *handler, uint16_t timeout) |
| | Write.
|
| virtual XRootDStatus | Sync (ResponseHandler *handler, uint16_t timeout) |
| | Sync.
|
| virtual XRootDStatus | Truncate (uint64_t size, ResponseHandler *handler, uint16_t timeout) |
| | Truncate.
|
| virtual XRootDStatus | VectorRead (const ChunkList &chunks, void *buffer, ResponseHandler *handler, uint16_t timeout) |
| | VectorRead.
|
| virtual XRootDStatus | Fcntl (const Buffer &arg, ResponseHandler *handler, uint16_t timeout) |
| | Fcntl.
|
| virtual XRootDStatus | Visa (ResponseHandler *handler, uint16_t timeout) |
| | Visa.
|
| virtual bool | IsOpen () const |
| | IsOpen.
|
| virtual bool | SetProperty (const std::string &name, const std::string &value) |
| | SetProperty.
|
| virtual bool | GetProperty (const std::string &name, std::string &value) const |
| | GetProperty.
|
Private Member Functions |
| std::string | trim (const std::string &in) const |
| std::string | GetPrefixUrl () const |
| std::list< std::string > | GetExclDomains () const |
| std::string | ConstructFinalUrl (const std::string &orig_url) const |
| std::string | GetFqdn (const std::string &hostname) const |
Private Attributes |
| bool | mIsOpen |
| XrdCl::File * | pFile |
Detailed Description
XrdClFile plugin that appends an URL prefix to the given URL. The URL prefix is set as an environment variable XRD_URL_PREFIX.
Constructor & Destructor Documentation
| xrdcl_proxy::ProxyPrefixFile::ProxyPrefixFile |
( |
|
) |
|
| virtual xrdcl_proxy::ProxyPrefixFile::~ProxyPrefixFile |
( |
|
) |
[virtual] |
Member Function Documentation
| std::string xrdcl_proxy::ProxyPrefixFile::ConstructFinalUrl |
( |
const std::string & |
orig_url |
) |
const [private] |
Construct final URL if there is a proxy prefix URL specified and if the exclusion list is satisfied
- Parameters:
-
- Returns:
- final URL
| std::list<std::string> xrdcl_proxy::ProxyPrefixFile::GetExclDomains |
( |
|
) |
const [private] |
Get list of domains which are NOT to be prefixed
- Returns:
- list of excluded domains
| std::string xrdcl_proxy::ProxyPrefixFile::GetFqdn |
( |
const std::string & |
hostname |
) |
const [private] |
Get FQDN for specified host
- Parameters:
-
| hostname | hostname without domain |
- Returns:
- FQDN
| std::string xrdcl_proxy::ProxyPrefixFile::GetPrefixUrl |
( |
|
) |
const [inline, private] |
Get proxy prefix URL from the environment
- Returns:
- proxy prefix RUL
| virtual bool xrdcl_proxy::ProxyPrefixFile::GetProperty |
( |
const std::string & |
name, |
|
|
std::string & |
value | |
|
) |
| | const [inline, virtual] |
| virtual bool xrdcl_proxy::ProxyPrefixFile::IsOpen |
( |
|
) |
const [inline, virtual] |
| virtual XRootDStatus xrdcl_proxy::ProxyPrefixFile::Read |
( |
uint64_t |
offset, |
|
|
uint32_t |
size, |
|
|
void * |
buffer, |
|
|
ResponseHandler * |
handler, |
|
|
uint16_t |
timeout | |
|
) |
| | [inline, virtual] |
| virtual bool xrdcl_proxy::ProxyPrefixFile::SetProperty |
( |
const std::string & |
name, |
|
|
const std::string & |
value | |
|
) |
| | [inline, virtual] |
| std::string xrdcl_proxy::ProxyPrefixFile::trim |
( |
const std::string & |
in |
) |
const [inline, private] |
Trim whitespaces from both ends of a string
- Returns:
- trimmed string
| virtual XRootDStatus xrdcl_proxy::ProxyPrefixFile::Truncate |
( |
uint64_t |
size, |
|
|
ResponseHandler * |
handler, |
|
|
uint16_t |
timeout | |
|
) |
| | [inline, virtual] |
| virtual XRootDStatus xrdcl_proxy::ProxyPrefixFile::VectorRead |
( |
const ChunkList & |
chunks, |
|
|
void * |
buffer, |
|
|
ResponseHandler * |
handler, |
|
|
uint16_t |
timeout | |
|
) |
| | [inline, virtual] |
| virtual XRootDStatus xrdcl_proxy::ProxyPrefixFile::Write |
( |
uint64_t |
offset, |
|
|
uint32_t |
size, |
|
|
const void * |
buffer, |
|
|
ResponseHandler * |
handler, |
|
|
uint16_t |
timeout | |
|
) |
| | [inline, virtual] |
Member Data Documentation
Referenced by Close(), Fcntl(), GetProperty(), IsOpen(), Read(), SetProperty(), Stat(), Sync(), Truncate(), VectorRead(), Visa(), and Write().
The documentation for this class was generated from the following file: