public class RestUserEndpoints
extends java.lang.Object
Simple facade class which contains REST service endpoints
USAGE(configuration & endpoint creation):
Create instance of class.
Add Interceptors if required with addInterceptor()
Call setupEndpoints() to create endpoints
USAGE(authentication methods):
Manually:
Create instance of the class
Call login.login() with proper credentials
Call setAuthToken() to set token
Use endpoints normally
Using implemented CredentialProvider
Create instance of concrete CredentialProvider
Call doLogin(CredentialProvider c). Save LoginResponse if needed
Use endpoints normally
Using saved LoginResponse
* read/deserialize LoginResponse from disk
* extract auth token
* call setAuthToken to set token
* Use endpoints normally
Others?
shortcut methods: with LoginRequest and LoginResponse as arguments