summaryrefslogtreecommitdiff
path: root/ACE/protocols/ace/INet/HTTP_URL.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/protocols/ace/INet/HTTP_URL.inl')
-rw-r--r--ACE/protocols/ace/INet/HTTP_URL.inl76
1 files changed, 76 insertions, 0 deletions
diff --git a/ACE/protocols/ace/INet/HTTP_URL.inl b/ACE/protocols/ace/INet/HTTP_URL.inl
new file mode 100644
index 00000000000..df6a2a0cebc
--- /dev/null
+++ b/ACE/protocols/ace/INet/HTTP_URL.inl
@@ -0,0 +1,76 @@
+// -*- C++ -*-
+//
+// $Id$
+
+ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
+namespace ACE
+{
+ namespace HTTP
+ {
+
+ ACE_INLINE
+ const ACE_CString& URL::get_scheme () const
+ {
+ return PROTOCOL;
+ }
+
+ ACE_INLINE
+ const ACE_CString& URL::get_query () const
+ {
+ return this->query_;
+ }
+
+ ACE_INLINE
+ const ACE_CString& URL::get_fragment () const
+ {
+ return this->fragment_;
+ }
+
+ ACE_INLINE
+ void URL::set_query (const ACE_CString& query)
+ {
+ this->query_ = query;
+ }
+
+ ACE_INLINE
+ void URL::set_fragment (const ACE_CString& fragment)
+ {
+ this->fragment_ = fragment;
+ }
+
+ ACE_INLINE
+ void URL::set_proxy (const ACE_CString& proxy_host, u_short proxy_port)
+ {
+ this->proxy_host_ = proxy_host;
+ this->proxy_port_ = proxy_port;
+ }
+
+ ACE_INLINE
+ const ACE_CString& URL::get_proxy_host () const
+ {
+ return this->proxy_host_;
+ }
+
+ ACE_INLINE
+ u_short URL::get_proxy_port () const
+ {
+ return this->proxy_port_;
+ }
+
+ ACE_INLINE
+ bool URL::has_proxy () const
+ {
+ return !this->proxy_host_.empty ();
+ }
+
+ ACE_INLINE
+ u_short URL::default_port () const
+ {
+ return HTTP_PORT;
+ }
+
+ }
+}
+
+ACE_END_VERSIONED_NAMESPACE_DECL