8 #ifndef SRC_XRDCL_XRDCLMETALINKREDIRECTOR_HH_
9 #define SRC_XRDCL_XRDCLMETALINKREDIRECTOR_HH_
75 std::string t = type !=
"adler32" ? type :
"a32";
76 CksumMap::const_iterator it = pChecksums.find( t );
77 if( it == pChecksums.end() )
return std::string();
78 return type +
":" + it->second;
87 std::vector<std::string> ret;
88 CksumMap::const_iterator itr = pChecksums.begin();
89 for( ; itr != pChecksums.end(); ++itr )
91 if( itr->first ==
"a32" ) ret.push_back(
"adler32" );
92 else ret.push_back( itr->first );
151 std::shared_ptr<Message> GetErrorMsg(
const Message *msg,
const std::string &errMsg,
XErrorCode code )
const;
171 XRootDStatus GetCgiInfo(
const Message &msg,
const std::string &key, std::string &out )
const;
173 typedef std::list< std::pair<const Message*, MsgHandler*> > RedirectList;
174 typedef std::map<std::string, std::string> CksumMap;
175 typedef std::vector<std::string> ReplicaList;
180 ReplicaList::const_iterator GetReplica(
const Message &msg )
const;
182 RedirectList pPendingRedirects;
186 ReplicaList pReplicas;
194 static const std::string LocalFile;
The message representation used throughout the system.
Handle an async response.
An interface for metadata redirectors.
Response * GetResponse(AnyObject *rsp)