Changeset 74348 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Sep 18, 2018 5:06:05 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/rest/RTCRestClientApiBase.cpp
r74250 r74348 38 38 39 39 /** 40 * Default constructor. 41 */ 42 RTCRestClientApiBase::RTCRestClientApiBase() 43 : m_hHttp(NIL_RTHTTP) 44 { 45 } 46 47 48 /** 40 49 * The destructor. 41 50 */ … … 48 57 m_hHttp = NIL_RTHTTP; 49 58 } 59 } 60 61 62 const char *RTCRestClientApiBase::getHost() const 63 { 64 return m_strHost.isEmpty() ? getDefaultHost() : m_strHost.c_str(); 65 } 66 67 int RTCRestClientApiBase::setHost(const char *a_pszHost) 68 { 69 return m_strHost.assignNoThrow(a_pszHost); 70 } 71 72 73 int RTCRestClientApiBase::setHost(RTCString const &a_strPath) 74 { 75 return setHost(a_strPath.c_str()); 76 } 77 78 79 const char *RTCRestClientApiBase::getBasePath(void) const 80 { 81 return m_strBasePath.isEmpty() ? getDefaultBasePath() : m_strBasePath.c_str(); 82 } 83 84 85 int RTCRestClientApiBase::setBasePath(const char *a_pszPath) 86 { 87 return m_strBasePath.assignNoThrow(a_pszPath); 88 } 89 90 91 int RTCRestClientApiBase::setBasePath(RTCString const &a_strPath) 92 { 93 return setBasePath(a_strPath.c_str()); 50 94 } 51 95 … … 126 170 */ 127 171 RTCString strFullUrl; 128 rc = strFullUrl.assignNoThrow(m_strBasePath); 172 rc = strFullUrl.assignNoThrow(getHost()); 173 if (RT_SUCCESS(rc)) 174 rc = strFullUrl.appendNoThrow(getBasePath()); 129 175 if (strExtraPath.isNotEmpty()) 130 176 {
Note:
See TracChangeset
for help on using the changeset viewer.