17#ifndef MS_HTTP_CLIENT_HPP
18#define MS_HTTP_CLIENT_HPP
23namespace matrix_science
30 class ms_http_client_session;
95 std::string baseUrl()
const;
100 void setBaseUrl(
const std::string & baseUrl);
105 bool getIsDatabaseActive(
const std::string & databaseName,
bool & returnIsActive);
108 bool getVersion(
int & major,
int & minor,
int & part3,
int & part4);
111 bool getOsName(std::string & osname);
114 bool getIsDatabaseActive(
const std::string & databaseName,
bool & OUTPUT);
115 bool getVersion(
int & OUTPUT,
int & OUTPUT,
int & OUTPUT,
int & OUTPUT);
116 bool getOsName(std::string & OUTPUT);
119 LoginResultCode userLogin(
120 const std::string & username,
121 const std::string & password,
125 ChangePasswordResultCode changePassword(
126 const std::string & userName,
127 const std::string & oldPassword,
128 const std::string & newPassword);
131 bool getIsSecurityEnabled(
bool & returnIsSecurityEnabled, std::string & returnUnsecuredSessionId);
134 bool getIsWebAuthenticationEnabled(
bool & returnIsWebAuthenticationEnabled, std::string & returnWebAuthenticatedSessionId);
136 bool getIsSecurityEnabled(
bool & OUTPUT, std::string & OUTPUT);
137 bool getIsWebAuthenticationEnabled(
bool & OUTPUT, std::string & OUTPUT);
141 LoginResultCode secureGuestLogin(
143 LoginResultCode secureUserLogin(
144 const std::string & username,
145 const std::string & password,
147 bool httpGetString(
const std::string & action, std::string & returnString);
Settings required to make an HTTP connection to a Mascot server.
Definition: ms_connection_settings.hpp:54
This class is used as a base class for several Mascot Parser classes.
Definition: ms_errors.hpp:696
This gives access to a Mascot session so searches may be submitted.
Definition: ms_http_client_session.hpp:48
This class enables access to a Mascot server using HTTP.
Definition: ms_http_client.hpp:48
LoginResultCode
Definitions for the types of response from the login program on the Mascot server.
Definition: ms_http_client.hpp:55
@ L_PASSWORDEXPIRED
The password supplied for the specified user has expired.
Definition: ms_http_client.hpp:60
@ L_INCORRECTPASSWORD
The password supplied for the specified user was incorrect.
Definition: ms_http_client.hpp:59
@ L_WEBAUTHENTICATIONFAILED
Web authentication failed for the currently logged in user.
Definition: ms_http_client.hpp:61
@ L_GUESTLOGINDISABLED
The guest login could not be accessed because it is disabled on the server.
Definition: ms_http_client.hpp:62
@ L_SECURITYDISABLED
Security is disabled on the Mascot server.
Definition: ms_http_client.hpp:57
@ L_SUCCESS
The function completed successfully.
Definition: ms_http_client.hpp:56
@ L_UNKNOWNUSER
The user ID supplied was not recognised by the Mascot server.
Definition: ms_http_client.hpp:58
ChangePasswordResultCode
Definitions for the possible responses to an attempt to change a password.
Definition: ms_http_client.hpp:71
@ CP_UNKNOWNUSER
The user ID was not recognised. No password was changed.
Definition: ms_http_client.hpp:73
@ CP_BADNEWPASSWORD
The new password could not be used (e.g. too short). No password was changed.
Definition: ms_http_client.hpp:75
@ CP_SUCCESS
The password was changed successfully.
Definition: ms_http_client.hpp:72
@ CP_INCORRECTPASSWORD
The old password supplied was incorrect. No password was changed.
Definition: ms_http_client.hpp:74
The class provides HTTP, FTP and FILE protocol access to a server.
Definition: ms_http_helper.hpp:57