Interface BaseSession
-
- All Known Implementing Classes:
SyncopeConsoleSession,SyncopeEnduserSession
public interface BaseSession
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classBaseSession.Error
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> Future<T>execute(Callable<T> command)SyncopeAnonymousClientgetAnonymousClient()<T> TgetAnonymousService(Class<T> serviceClass)DateOps.FormatgetDateFormat()StringgetDomain()StringgetJWT()<T> TgetService(Class<T> serviceClass)<T> TgetService(String etag, Class<T> serviceClass)default List<Locale>getSupportedLocales()voidonException(Exception e)Extract and localize (if translation available) the actual message from the given exception; then, report it viaSession.error(java.io.Serializable).<T> voidresetClient(Class<T> service)voidsetDomain(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
-
-