Class ServiceMetaData
- java.lang.Object
-
- de.aristaflow.ilm.ws.base.service.ServiceMetaData
-
public class ServiceMetaData extends Object
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
Fields Modifier and Type Field Description protected URLbaseUrlThe base URL of the web app of the REST communication service.protected LogServicelogServiceThe log service for creating class-specific loggers.protected ServiceAccessserviceAccessThe service access of the corresponding web service communication service providing model factories.protected URI[]serviceUrisThe service URIs of the corresponding web service communication service.protected Supplier<SessionFactory>sfSupplierThe supplier for a privileged session factory of the corresponding web service communication to unmarshal session token.
-
Constructor Summary
Constructors Constructor Description ServiceMetaData(LogService logService, Supplier<SessionFactory> sfSupplier, URI[] serviceUris, URL baseUrl, ServiceAccess serviceAccess)Creates new service meta data with the designated data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionFactoryget()Gets a privileged session factory to unmarshal session token.URLgetBaseUrl()Gets the base URL of the web app of the REST communication service.LoggergetLogger(Class<?> cls)Gets a logger for the designated class.LogServicegetLogService()Gets the log service for creating class-specific loggers.ServiceAccessgetServiceAccess()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 Detail
-
logService
protected final LogService logService
The log service for creating class-specific loggers.
-
sfSupplier
protected final Supplier<SessionFactory> sfSupplier
The supplier for a privileged session factory of the corresponding web service communication to unmarshal session token.
-
serviceUris
protected final URI[] serviceUris
The service URIs of the corresponding web service communication service. This allows for creating session tokens with client session factories.
-
baseUrl
protected final URL baseUrl
The base URL of the web app of the REST communication service. This allows to set inter-service cookies.
-
serviceAccess
protected final ServiceAccess serviceAccess
The service access of the corresponding web service communication service providing model factories.
-
-
Constructor Detail
-
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 Detail
-
getLogService
public LogService getLogService()
Gets the log service for creating class-specific loggers.- Returns:
- The log service for creating class-specific loggers.
-
getLogger
public Logger getLogger(Class<?> cls)
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
public SessionFactory get()
Gets a privileged session factory to unmarshal session token.- Returns:
- A privileged session factory to unmarshal session token.
-
getUris
public URI[] 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
public URL 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
public ServiceAccess 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.
-
-