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

#include <CurlUri.hxx>

Public Member Functions

 CurlUri (CurlUri const &rUri)
 
 CurlUri (CURLU &rUrl)
 
void operator= (CurlUri const &rOther)
 
 CurlUri (::std::u16string_view rURI)
 
bool operator== (CurlUri const &rOther) const
 
CURLU const * GetCURLU () const
 
OUString const & GetURI () const
 
OUString const & GetScheme () const
 
OUString const & GetUser () const
 
OUString const & GetPassword () const
 
OUString const & GetHost () const
 
sal_uInt16 GetPort () const
 
OUString const & GetPath () const
 
OUString GetRelativeReference () const
 
OUString GetPathBaseName () const
 
OUString GetPathBaseNameUnescaped () const
 
void SetScheme (::std::u16string_view rScheme)
 
void AppendPath (::std::u16string_view rPath)
 
CurlUri CloneWithRelativeRefPathAbsolute (std::u16string_view rRelativeRef) const
 

Private Member Functions

void Init ()
 

Private Attributes

::std::unique_ptr< CURLU, deleter_from_fn< CURLU, curl_url_cleanup > > m_pUrl
 native curl representation of parsed URI More...
 
OUString m_URI
 duplicate state for quick access to some components More...
 
OUString m_Scheme
 
OUString m_User
 
OUString m_Password
 
OUString m_Host
 
sal_uInt16 m_nPort = 0
 
OUString m_Path
 
OUString m_QueryAndFragment
 

Detailed Description

Definition at line 38 of file CurlUri.hxx.

Constructor & Destructor Documentation

◆ CurlUri() [1/3]

http_dav_ucp::CurlUri::CurlUri ( CurlUri const &  rUri)

Definition at line 144 of file CurlUri.cxx.

References get(), and m_pUrl.

Referenced by CloneWithRelativeRefPathAbsolute().

◆ CurlUri() [2/3]

http_dav_ucp::CurlUri::CurlUri ( CURLU &  rUrl)

Definition at line 133 of file CurlUri.cxx.

References Init(), and m_pUrl.

◆ CurlUri() [3/3]

http_dav_ucp::CurlUri::CurlUri ( ::std::u16string_view  rURI)
explicit

Member Function Documentation

◆ AppendPath()

void http_dav_ucp::CurlUri::AppendPath ( ::std::u16string_view  rPath)

◆ CloneWithRelativeRefPathAbsolute()

CurlUri http_dav_ucp::CurlUri::CloneWithRelativeRefPathAbsolute ( std::u16string_view  rRelativeRef) const
Parameters
matchesrelative-ref = path-absolute [ "?" query ] [ "#" fragment ]
Exceptions
DAVException

Definition at line 243 of file CurlUri.cxx.

References CurlUri(), http_dav_ucp::DAVException::DAV_INVALID_ARG, fragment, m_pUrl, OUStringToOString(), query(), and SAL_WARN.

◆ GetCURLU()

CURLU const * http_dav_ucp::CurlUri::GetCURLU ( ) const
inline

Definition at line 65 of file CurlUri.hxx.

References m_pUrl.

◆ GetHost()

OUString const & http_dav_ucp::CurlUri::GetHost ( ) const
inline

◆ GetPassword()

OUString const & http_dav_ucp::CurlUri::GetPassword ( ) const
inline

Definition at line 69 of file CurlUri.hxx.

References m_Password.

Referenced by http_dav_ucp::CurlProcessor::ProcessRequest().

◆ GetPath()

OUString const & http_dav_ucp::CurlUri::GetPath ( ) const
inline

Definition at line 72 of file CurlUri.hxx.

References m_Path.

Referenced by http_dav_ucp::DataSupplier::getData().

◆ GetPathBaseName()

OUString http_dav_ucp::CurlUri::GetPathBaseName ( ) const

Definition at line 182 of file CurlUri.cxx.

References m_Path, and nPos.

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

◆ GetPathBaseNameUnescaped()

OUString http_dav_ucp::CurlUri::GetPathBaseNameUnescaped ( ) const

◆ GetPort()

sal_uInt16 http_dav_ucp::CurlUri::GetPort ( ) const
inline

Definition at line 71 of file CurlUri.hxx.

References m_nPort.

Referenced by http_dav_ucp::CurlSession::CanUse(), and http_dav_ucp::CurlSession::CurlSession().

◆ GetRelativeReference()

OUString http_dav_ucp::CurlUri::GetRelativeReference ( ) const
inline

Definition at line 73 of file CurlUri.hxx.

References m_Path, and m_QueryAndFragment.

Referenced by http_dav_ucp::DAVResourceAccess::initialize().

◆ GetScheme()

OUString const & http_dav_ucp::CurlUri::GetScheme ( ) const
inline

Definition at line 67 of file CurlUri.hxx.

References m_Scheme.

Referenced by http_dav_ucp::CurlSession::CanUse(), and http_dav_ucp::CurlSession::CurlSession().

◆ GetURI()

OUString const & http_dav_ucp::CurlUri::GetURI ( ) const
inline

◆ GetUser()

OUString const & http_dav_ucp::CurlUri::GetUser ( ) const
inline

Definition at line 68 of file CurlUri.hxx.

References m_User.

Referenced by http_dav_ucp::CurlProcessor::ProcessRequest().

◆ Init()

void http_dav_ucp::CurlUri::Init ( void  )
private

◆ operator=()

void http_dav_ucp::CurlUri::operator= ( CurlUri const &  rOther)

Definition at line 162 of file CurlUri.cxx.

References m_Host, m_nPort, m_Password, m_Path, m_pUrl, m_QueryAndFragment, m_Scheme, m_URI, and m_User.

◆ operator==()

bool http_dav_ucp::CurlUri::operator== ( CurlUri const &  rOther) const

Definition at line 180 of file CurlUri.cxx.

References m_URI.

◆ SetScheme()

void http_dav_ucp::CurlUri::SetScheme ( ::std::u16string_view  rScheme)

Member Data Documentation

◆ m_Host

OUString http_dav_ucp::CurlUri::m_Host
private

Definition at line 48 of file CurlUri.hxx.

Referenced by GetHost(), Init(), and operator=().

◆ m_nPort

sal_uInt16 http_dav_ucp::CurlUri::m_nPort = 0
private

Definition at line 49 of file CurlUri.hxx.

Referenced by GetPort(), Init(), and operator=().

◆ m_Password

OUString http_dav_ucp::CurlUri::m_Password
private

Definition at line 47 of file CurlUri.hxx.

Referenced by GetPassword(), Init(), and operator=().

◆ m_Path

OUString http_dav_ucp::CurlUri::m_Path
private

Definition at line 50 of file CurlUri.hxx.

Referenced by AppendPath(), GetPath(), GetPathBaseName(), GetRelativeReference(), Init(), and operator=().

◆ m_pUrl

::std::unique_ptr<CURLU, deleter_from_fn<CURLU, curl_url_cleanup> > http_dav_ucp::CurlUri::m_pUrl
private

native curl representation of parsed URI

Definition at line 42 of file CurlUri.hxx.

Referenced by AppendPath(), CloneWithRelativeRefPathAbsolute(), CurlUri(), GetCURLU(), Init(), operator=(), and SetScheme().

◆ m_QueryAndFragment

OUString http_dav_ucp::CurlUri::m_QueryAndFragment
private

Definition at line 51 of file CurlUri.hxx.

Referenced by GetRelativeReference(), Init(), and operator=().

◆ m_Scheme

OUString http_dav_ucp::CurlUri::m_Scheme
private

Definition at line 45 of file CurlUri.hxx.

Referenced by GetScheme(), Init(), operator=(), and SetScheme().

◆ m_URI

OUString http_dav_ucp::CurlUri::m_URI
private

duplicate state for quick access to some components

Definition at line 44 of file CurlUri.hxx.

Referenced by AppendPath(), GetURI(), Init(), operator=(), operator==(), and SetScheme().

◆ m_User

OUString http_dav_ucp::CurlUri::m_User
private

Definition at line 46 of file CurlUri.hxx.

Referenced by GetUser(), Init(), and operator=().


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