00001 // -*- C++ -*- 00002 // 00003 // $Id: URLBase.inl 90757 2010-06-22 07:52:02Z mcorino $ 00004 00005 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 namespace ACE 00008 { 00009 namespace INet 00010 { 00011 ACE_INLINE 00012 const ACE_CString& URL_Base::get_protocol () const 00013 { 00014 return this->get_scheme (); 00015 } 00016 00017 ACE_INLINE 00018 const ACE_CString& URL_Base::get_path () const 00019 { 00020 return this->path_; 00021 } 00022 00023 ACE_INLINE 00024 void URL_Base::set_path (const ACE_CString& path) 00025 { 00026 this->path_ = path; 00027 } 00028 00029 ACE_INLINE 00030 void URL_Base::set_query (const ACE_CString& /*query*/) 00031 { 00032 } 00033 00034 ACE_INLINE 00035 void URL_Base::set_fragment (const ACE_CString& /*fragment*/) 00036 { 00037 } 00038 00039 ACE_INLINE 00040 const ACE_CString& URL_Base::get_query () const 00041 { 00042 return empty_; 00043 } 00044 00045 ACE_INLINE 00046 const ACE_CString& URL_Base::get_fragment () const 00047 { 00048 return empty_; 00049 } 00050 00051 ACE_INLINE 00052 ACE_CString URL_Base::get_authority () const 00053 { 00054 return empty_; 00055 } 00056 00057 ACE_INLINE 00058 const ACE_CString& URL_INetBase::get_host () const 00059 { 00060 return this->host_; 00061 } 00062 00063 ACE_INLINE 00064 u_short URL_INetBase::get_port () const 00065 { 00066 return this->port_; 00067 } 00068 00069 ACE_INLINE 00070 void URL_INetBase::set_host (const ACE_CString& host) 00071 { 00072 this->host_ = host; 00073 } 00074 00075 ACE_INLINE 00076 void URL_INetBase::set_port (u_short port) 00077 { 00078 this->port_ = port; 00079 } 00080 00081 ACE_INLINE 00082 const ACE_CString& URL_INetAuthBase::get_user_info () const 00083 { 00084 return this->userinfo_; 00085 } 00086 00087 ACE_INLINE 00088 void URL_INetAuthBase::set_user_info (const ACE_CString& userinfo) 00089 { 00090 this->userinfo_ = userinfo; 00091 } 00092 } 00093 } 00094 00095 ACE_END_VERSIONED_NAMESPACE_DECL