Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / protocols / ace / INet / HTTP_URL.inl
blobbd5b6d7f19cd51d9e0d38bf8b11f24dc4b4a4794
1 // -*- C++ -*-
2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 namespace ACE
6   namespace HTTP
7   {
9     ACE_INLINE
10     const ACE_CString& URL::get_scheme () const
11       {
12         return protocol ();
13       }
15     ACE_INLINE
16     const ACE_CString& URL::get_query () const
17       {
18         return this->query_;
19       }
21     ACE_INLINE
22     const ACE_CString& URL::get_fragment () const
23       {
24         return this->fragment_;
25       }
27     ACE_INLINE
28     void URL::set_query (const ACE_CString& query)
29       {
30         this->query_ = query;
31       }
33     ACE_INLINE
34     void URL::set_fragment (const ACE_CString& fragment)
35       {
36         this->fragment_ = fragment;
37       }
39     ACE_INLINE
40     void URL::set_proxy (const ACE_CString& proxy_host, u_short proxy_port)
41       {
42         this->proxy_host_ = proxy_host;
43         this->proxy_port_ = proxy_port;
44       }
46     ACE_INLINE
47     const ACE_CString& URL::get_proxy_host () const
48       {
49         return this->proxy_host_;
50       }
52     ACE_INLINE
53     u_short URL::get_proxy_port () const
54       {
55         return this->proxy_port_;
56       }
58     ACE_INLINE
59     bool URL::has_proxy () const
60       {
61         return !this->proxy_host_.empty ();
62       }
64     ACE_INLINE
65     u_short URL::default_port () const
66       {
67         return HTTP_PORT;
68       }
70   }
73 ACE_END_VERSIONED_NAMESPACE_DECL