Interface BaseSession
-
- All Known Implementing Classes:
SyncopeConsoleSession
,SyncopeEnduserSession
public interface BaseSession
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
BaseSession.Error
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> Future<T>
execute(Callable<T> command)
SyncopeAnonymousClient
getAnonymousClient()
<T> T
getAnonymousService(Class<T> serviceClass)
DateOps.Format
getDateFormat()
String
getDomain()
String
getJWT()
<T> T
getService(Class<T> serviceClass)
<T> T
getService(String etag, Class<T> serviceClass)
default List<Locale>
getSupportedLocales()
void
onException(Exception e)
Extract and localize (if translation available) the actual message from the given exception; then, report it viaSession.error(java.io.Serializable)
.<T> void
resetClient(Class<T> service)
void
setDomain(String domain)
-
-
-
Method Detail
-
setDomain
void setDomain(String domain)
-
getDomain
String getDomain()
-
getJWT
String getJWT()
-
getAnonymousClient
SyncopeAnonymousClient getAnonymousClient()
-
getAnonymousService
<T> T getAnonymousService(Class<T> serviceClass)
-
getService
<T> T getService(Class<T> serviceClass)
-
resetClient
<T> void resetClient(Class<T> service)
-
getDateFormat
DateOps.Format getDateFormat()
-
onException
void onException(Exception e)
Extract and localize (if translation available) the actual message from the given exception; then, report it viaSession.error(java.io.Serializable)
.- Parameters:
e
- raised exception- See Also:
RestClientExceptionMapper
-
-