Equinox
Requester
The EquinoxRequester class is useful to communicate with backend based on the SpringBoot framework with the EquinoxUser requests pre-implemented
Author
N7ghtm4r3 - Tecknobit
Since
1.0.1
Parameters
: the host address where is running the backend
: the user identifier
: the user token
: whether the requester is still in development and who is developing needs the log of the requester's workflow, if it is enabled all the details of the requests sent and the errors occurred will be printed in the console
: time to keep alive request then throw the connection refused error
: the error to send when a connection error occurred
: whether enable the SSL certificates validation, this for example when the certificate is a self-signed certificate to by-pass
Constructors
Properties
apiRequest -> the instance to communicate and make the requests to the backend
mustValidateCertificates flag whether the requests must validate the SSL certificates, this for example when the SSL is a self-signed certificate
timeFormatter
the formatter
used to format the timestamp values
Functions
Function to assemble the endpoint to make the request to the custom controllers
Function to assemble the endpoint to make the request to the users controller
Function to execute the request to change the email of the user
Function to change, during the runtime for example when the session changed, the host address to make the requests
Function to execute the request to change the language of the user
Function to execute the request to change the password of the user
Function to execute the request to change the profile pic of the user
Function to set the RESPONSE_STATUS_KEY to send when an error during the connection occurred
Function to execute the request to delete the account of the user
Function to execute a RequestMethod.DELETE request to the backend
Function to exec a multipart body request
Function to execute a request to the backend
Function to create the payload for the signIn request.
Function to get whether the request has been successful or not
Function to log the current headers used in the requests
Function to print the details of the request sent if the debugMode is enabled
Function to execute and manage the response of a request
Function to set programmatically timeout for the requests
Function to set the user credentials used to make the authenticated requests
Method to validate a
self-signed SLL certificate and bypass the checks of its
validity
No-any params required