Class ServiceMetaData
java.lang.Object
de.aristaflow.ilm.ws.base.service.ServiceMetaData
Service meta data provides data from the corresponding communication service. These are a log
service to create class-specific loggers in (sub) resource web services, a session factory
supplier for unmarshalling session tokens, service URIs to create session tokens with client
session factories which is required for marshalling them and access to the model factory
registries.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final URLThe base URL of the web app of the REST communication service.protected final LogServiceThe log service for creating class-specific loggers.protected final ServiceAccessThe service access of the corresponding web service communication service providing model factories.protected final URI[]The service URIs of the corresponding web service communication service.protected final Supplier<SessionFactory>The supplier for a privileged session factory of the corresponding web service communication to unmarshal session token. -
Constructor Summary
ConstructorsConstructorDescriptionServiceMetaData(LogService logService, Supplier<SessionFactory> sfSupplier, URI[] serviceUris, URL baseUrl, ServiceAccess serviceAccess) Creates new service meta data with the designated data. -
Method Summary
Modifier and TypeMethodDescriptionget()Gets a privileged session factory to unmarshal session token.Gets the base URL of the web app of the REST communication service.Gets a logger for the designated class.Gets the log service for creating class-specific loggers.Gets the service access of the corresponding web service communication service providing model factories.URI[]getUris()Gets the service URIs for creating session tokens with client session factories.
-
Field Details
-
logService
The log service for creating class-specific loggers. -
sfSupplier
The supplier for a privileged session factory of the corresponding web service communication to unmarshal session token. -
serviceUris
The service URIs of the corresponding web service communication service. This allows for creating session tokens with client session factories. -
baseUrl
The base URL of the web app of the REST communication service. This allows to set inter-service cookies. -
serviceAccess
The service access of the corresponding web service communication service providing model factories.
-
-
Constructor Details
-
ServiceMetaData
public ServiceMetaData(LogService logService, Supplier<SessionFactory> sfSupplier, URI[] serviceUris, URL baseUrl, ServiceAccess serviceAccess) Creates new service meta data with the designated data.- Parameters:
logService- The log service for creating class-specific loggers.sfSupplier- The supplier for a privileged session factory of the corresponding web service communication to unmarshal session token.serviceUris- The service URIs of the corresponding web service communication service. This allows for creating session tokens with client session factories.baseUrl- The base URL of the web app of the REST communication service.serviceAccess- The service access of the corresponding web service communication service providing model factories.
-
-
Method Details
-
getLogService
Gets the log service for creating class-specific loggers.- Returns:
- The log service for creating class-specific loggers.
-
getLogger
Gets a logger for the designated class.- Parameters:
cls- The class for which to get a specific logger.- Returns:
- A logger for the designated class.
-
get
Gets a privileged session factory to unmarshal session token.- Returns:
- A privileged session factory to unmarshal session token.
-
getUris
Gets the service URIs for creating session tokens with client session factories.- Returns:
- The service URIs for creating session tokens with client session factories.
-
getBaseUrl
Gets the base URL of the web app of the REST communication service.- Returns:
- The base URL of the web app of the REST communication service.
-
getServiceAccess
Gets the service access of the corresponding web service communication service providing model factories.- Returns:
- The service access of the corresponding web service communication service providing model factories.
-