Class AbstractSubResourceWebService<T>

    • Constructor Detail

      • AbstractSubResourceWebService

        protected AbstractSubResourceWebService​(T service,
                                                AbstractSubResourceWebService<?> parent)
        Creates a new (sub) resource web service for the designated (sub) service using a log service, session factory provider and service URIs from the designated parent sub resource web service.
        Parameters:
        service - The (sub) service wrapped by this (sub) resource web service.
        parent - The parent (sub) resource of this sub resource web service.
      • AbstractSubResourceWebService

        protected AbstractSubResourceWebService​(T service,
                                                ServiceMetaData serviceMetaData)
        Creates a new (sub) resource web service for the designated (sub) service using the designated service meta data and creating a class-specific logger from it.
        Parameters:
        service - The (sub) service wrapped by this (sub) resource web service.
        serviceMetaData - The service meta data for creating sub resources.
    • Method Detail

      • getService

        protected T getService()
        Gets the wrapped Java API (sub) service instance.
        Returns:
        The wrapped Java API (sub) service instance.
      • getLogService

        public LogService getLogService()
        Gets the log service for creating loggers for child sub resource web services.
        Returns:
        The log service for creating loggers for child sub resource web services.
      • getLogger

        protected Logger getLogger()
        Gets the logger to be used by the (sub) resource web service.
        Returns:
        The logger to be used by the (sub) resource web service.
      • getSessionFactory

        protected SessionFactory getSessionFactory()
        Gets the session factory for unmarshalling session tokens.
        Returns:
        The session factory for unmarshalling session tokens.
      • getServiceUris

        protected URI[] getServiceUris()
        Gets the service URIs of the corresponding web service communication service. This allows for creating session tokens with client session factories.
        Returns:
        The service URIs of the corresponding web service communication service.
      • getServiceMetaData

        public ServiceMetaData getServiceMetaData()
        Gets service meta data for creating sub resources.
        Returns:
        service meta data for creating sub resources.
      • shutdown

        public void shutdown()
        Shuts down this sub resource web service. This default implementation does nothing.