LibreOffice Module ucb (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
http_dav_ucp::SerfUri Class Reference

#include <SerfUri.hxx>

Public Member Functions

 SerfUri (const OUString &inUri)
 
 SerfUri (const apr_uri_t *inUri)
 
 ~SerfUri ()
 
bool operator== (const SerfUri &rOther) const
 
bool operator!= (const SerfUri &rOther) const
 
apr_uri_t & getAprUri ()
 
const OUString & GetURI () const
 
const OUString & GetScheme () const
 
const OUString & GetUserInfo () const
 
const OUString & GetHost () const
 
sal_Int32 GetPort () const
 
const OUString & GetPath () const
 
OUString GetPathBaseName () const
 
OUString GetPathBaseNameUnescaped () const
 
void SetScheme (const OUString &scheme)
 
void AppendPath (const OUString &rPath)
 
OUString makeConnectionEndPointString () const
 

Static Public Member Functions

static OUString escapeSegment (const OUString &segment)
 
static OUString unescape (const OUString &string)
 
static OUString makeConnectionEndPointString (const OUString &rHostName, int nPort)
 

Private Member Functions

void init (const apr_uri_t *pUri)
 
void calculateURI ()
 

Private Attributes

apr_uri_t mAprUri
 
OUString mURI
 
OUString mScheme
 
OUString mUserInfo
 
OUString mHostName
 
sal_Int32 mPort
 
OUString mPath
 

Detailed Description

Definition at line 38 of file SerfUri.hxx.

Constructor & Destructor Documentation

SerfUri::SerfUri ( const OUString &  inUri)
explicit
SerfUri::SerfUri ( const apr_uri_t *  inUri)
explicit
SerfUri::~SerfUri ( )

Definition at line 113 of file SerfUri.cxx.

Member Function Documentation

void SerfUri::AppendPath ( const OUString &  rPath)

Definition at line 200 of file SerfUri.cxx.

References calculateURI(), and mPath.

void SerfUri::calculateURI ( )
private

Definition at line 117 of file SerfUri.cxx.

References aBuf, DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT, mHostName, mPath, mPort, mScheme, mURI, and mUserInfo.

Referenced by AppendPath(), SerfUri(), and SetScheme().

OUString SerfUri::escapeSegment ( const OUString &  segment)
static

Definition at line 210 of file SerfUri.cxx.

apr_uri_t& http_dav_ucp::SerfUri::getAprUri ( )
inline

Definition at line 63 of file SerfUri.hxx.

References mAprUri.

Referenced by http_dav_ucp::SerfSession::getHostinfo(), and http_dav_ucp::SerfSession::Init().

const OUString& http_dav_ucp::SerfUri::GetHost ( ) const
inline
const OUString& http_dav_ucp::SerfUri::GetPath ( ) const
inline
OUString SerfUri::GetPathBaseName ( ) const

Definition at line 161 of file SerfUri.cxx.

References mPath, and nPos.

Referenced by http_dav_ucp::ContentProperties::ContentProperties(), and GetPathBaseNameUnescaped().

OUString SerfUri::GetPathBaseNameUnescaped ( ) const

Definition at line 195 of file SerfUri.cxx.

References GetPathBaseName(), and unescape().

Referenced by http_dav_ucp::ContentProperties::ContentProperties().

sal_Int32 http_dav_ucp::SerfUri::GetPort ( ) const
inline
const OUString& http_dav_ucp::SerfUri::GetScheme ( ) const
inline
const OUString& http_dav_ucp::SerfUri::GetURI ( ) const
inline
const OUString& http_dav_ucp::SerfUri::GetUserInfo ( ) const
inline

Definition at line 71 of file SerfUri.hxx.

References mUserInfo.

Referenced by http_dav_ucp::SerfSession::provideSerfCredentials().

void SerfUri::init ( const apr_uri_t *  pUri)
private

Definition at line 92 of file SerfUri.cxx.

References mHostName, mPath, mPort, mScheme, and mUserInfo.

Referenced by SerfUri().

OUString SerfUri::makeConnectionEndPointString ( const OUString &  rHostName,
int  nPort 
)
static

Definition at line 227 of file SerfUri.cxx.

References aBuf, DEFAULT_HTTP_PORT, and DEFAULT_HTTPS_PORT.

OUString http_dav_ucp::SerfUri::makeConnectionEndPointString ( ) const
inline
bool http_dav_ucp::SerfUri::operator!= ( const SerfUri rOther) const
inline

Definition at line 60 of file SerfUri.hxx.

References operator==().

bool SerfUri::operator== ( const SerfUri rOther) const

Definition at line 190 of file SerfUri.cxx.

References mURI.

Referenced by operator!=().

void http_dav_ucp::SerfUri::SetScheme ( const OUString &  scheme)
inline

Definition at line 84 of file SerfUri.hxx.

References calculateURI().

OUString SerfUri::unescape ( const OUString &  string)
static

Definition at line 219 of file SerfUri.cxx.

Referenced by http_dav_ucp::DataSupplier::getData(), and GetPathBaseNameUnescaped().

Member Data Documentation

apr_uri_t http_dav_ucp::SerfUri::mAprUri
private

Definition at line 41 of file SerfUri.hxx.

Referenced by getAprUri(), and SerfUri().

OUString http_dav_ucp::SerfUri::mHostName
private

Definition at line 45 of file SerfUri.hxx.

Referenced by calculateURI(), GetHost(), and init().

OUString http_dav_ucp::SerfUri::mPath
private

Definition at line 47 of file SerfUri.hxx.

Referenced by AppendPath(), calculateURI(), GetPath(), GetPathBaseName(), and init().

sal_Int32 http_dav_ucp::SerfUri::mPort
private

Definition at line 46 of file SerfUri.hxx.

Referenced by calculateURI(), GetPort(), and init().

OUString http_dav_ucp::SerfUri::mScheme
private

Definition at line 43 of file SerfUri.hxx.

Referenced by calculateURI(), GetScheme(), and init().

OUString http_dav_ucp::SerfUri::mURI
private

Definition at line 42 of file SerfUri.hxx.

Referenced by calculateURI(), GetURI(), and operator==().

OUString http_dav_ucp::SerfUri::mUserInfo
private

Definition at line 44 of file SerfUri.hxx.

Referenced by calculateURI(), GetUserInfo(), and init().


The documentation for this class was generated from the following files: