Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

URI.h

00001 /*
00002  *  Copyright (c) 2004 on behalf of the EU EGEE Project:
00003  *  The European Organization for Nuclear Research (CERN),
00004  *  Istituto Nazionale di Fisica Nucleare (INFN), Italy
00005  *  Datamat Spa, Italy
00006  *  Centre National de la Recherche Scientifique (CNRS), France
00007  *  CS Systeme d'Information (CSSI), France
00008  *  Royal Institute of Technology, Center for Parallel Computers (KTH-PDC), Sweden
00009  *  Universiteit van Amsterdam (UvA), Netherlands
00010  *  University of Helsinki (UH.HIP), Finland
00011  *  University of Bergen (UiB), Norway
00012  *  Council for the Central Laboratory of the Research Councils (CCLRC), United Kingdom
00013  */
00014 #ifndef URI_H
00015 #define URI_H
00016 
00017 #include "rgma/RGMAException.h"
00018 #include <string>
00019 
00020 namespace glite
00021 {
00022     namespace rgma
00023     {
00029         class URI
00030         {
00031             private:
00032                 std::string m_uri;
00033                 short m_portNo;
00034                 bool m_gotPort;
00035 
00036             public:
00037                 virtual ~URI();
00043                 URI(const std::string uri = "")throw(RGMAException);
00049                 void set(const char* newUri)throw(RGMAException);
00054                 std::string toString() const;
00059                 std::string host() const;
00064                 std::string path() const;
00069                 bool usingHttps() const;
00074                 short port();
00075         };
00076         std::ostream& operator<<( std::ostream& stream, URI uri );
00077     }
00078 }
00079 #endif                                            // URI_H

Generated on Wed May 17 17:48:18 2006 for glite-rgma-api-cpp by doxygen 1.3.5