Equinox
Requester
Deprecated
This class will be moved in the Equinox-Compose library in the next version
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
interceptorAction the action of the interceptor to execute when a request has been sent, if not specified is null by default and no interceptions will be executed
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
Method to assemble the endpoint to make the request to the custom controllers
Method to assemble the endpoint to make the request to the users controller
Method to attach a new interceptor to the Requester to execute it when a request has been sent
Method to execute the request to change the email of the user
Method to change, during the runtime for example when the session changed, the host address to make the requests
Method to execute the request to change the language of the user
Method to execute the request to change the password of the user
Method to execute the request to change the profile pic of the user
Method to set the RESPONSE_STATUS_KEY to send when an error during the connection occurred
Method to create the query with the pagination parameters
Method to execute the request to delete the account of the user
Method to execute a RequestMethod.DELETE request to the backend
Method to exec a multipart body request
Method to execute a request to the backend
Method to create the payload for the signIn request.
Method to execute the interceptorAction if it is specified by the attachInterceptorOnRequest method
Method to log the current headers used in the requests
Method to print the details of the request sent if the debugMode is enabled
Method to set programmatically timeout for the requests
Method 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