summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/webdav/NeonUri.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/webdav/NeonUri.hxx')
-rw-r--r--ucb/source/ucp/webdav/NeonUri.hxx19
1 files changed, 15 insertions, 4 deletions
diff --git a/ucb/source/ucp/webdav/NeonUri.hxx b/ucb/source/ucp/webdav/NeonUri.hxx
index a92ef6262d0a..dcf4aa084f87 100644
--- a/ucb/source/ucp/webdav/NeonUri.hxx
+++ b/ucb/source/ucp/webdav/NeonUri.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: NeonUri.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: kso $ $Date: 2001-05-16 15:30:00 $
+ * last change: $Author: kso $ $Date: 2001-06-25 08:51:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -61,8 +61,13 @@
#ifndef _NEONURI_HXX_
#define _NEONURI_HXX_
+#ifndef URI_H
#include <uri.h>
+#endif
+
+#ifndef _RTL_USTRING_HXX_
#include <rtl/ustring.hxx>
+#endif
namespace webdav_ucp
{
@@ -91,8 +96,6 @@ class NeonUri
NeonUri( const ::rtl::OUString & inUri );
~NeonUri( );
- const ::rtl::OUString & GetHostName( void ) const
- { return mHostName; };
const ::rtl::OUString & GetURI( void ) const
{ return mURI; };
const ::rtl::OUString & GetScheme( void ) const
@@ -116,7 +119,15 @@ class NeonUri
static ::rtl::OUString escapeSegment( const ::rtl::OUString& segment );
static ::rtl::OUString unescape( const ::rtl::OUString& string );
+
+ // "host:port", omit ":port" for port 80 and 443
+ static rtl::OUString makeConnectionEndPointString(
+ const rtl::OUString & rHostName,
+ int nPort );
+ rtl::OUString makeConnectionEndPointString() const
+ { return makeConnectionEndPointString( GetHost(), GetPort() ); }
};
}; // namespace webdav_ucp
+
#endif // _NEONURI_HXX_