00001 // -*- C++ -*- 00002 // 00003 // $Id: HTTP_URL.inl 91118 2010-07-17 10:29:57Z mcorino $ 00004 00005 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 namespace ACE 00008 { 00009 namespace HTTP 00010 { 00011 00012 ACE_INLINE 00013 const ACE_CString& URL::get_scheme () const 00014 { 00015 return protocol (); 00016 } 00017 00018 ACE_INLINE 00019 const ACE_CString& URL::get_query () const 00020 { 00021 return this->query_; 00022 } 00023 00024 ACE_INLINE 00025 const ACE_CString& URL::get_fragment () const 00026 { 00027 return this->fragment_; 00028 } 00029 00030 ACE_INLINE 00031 void URL::set_query (const ACE_CString& query) 00032 { 00033 this->query_ = query; 00034 } 00035 00036 ACE_INLINE 00037 void URL::set_fragment (const ACE_CString& fragment) 00038 { 00039 this->fragment_ = fragment; 00040 } 00041 00042 ACE_INLINE 00043 void URL::set_proxy (const ACE_CString& proxy_host, u_short proxy_port) 00044 { 00045 this->proxy_host_ = proxy_host; 00046 this->proxy_port_ = proxy_port; 00047 } 00048 00049 ACE_INLINE 00050 const ACE_CString& URL::get_proxy_host () const 00051 { 00052 return this->proxy_host_; 00053 } 00054 00055 ACE_INLINE 00056 u_short URL::get_proxy_port () const 00057 { 00058 return this->proxy_port_; 00059 } 00060 00061 ACE_INLINE 00062 bool URL::has_proxy () const 00063 { 00064 return !this->proxy_host_.empty (); 00065 } 00066 00067 ACE_INLINE 00068 u_short URL::default_port () const 00069 { 00070 return HTTP_PORT; 00071 } 00072 00073 } 00074 } 00075 00076 ACE_END_VERSIONED_NAMESPACE_DECL