Interface UsageRequestBuilderFactory
public interface UsageRequestBuilderFactory
UsageRequestBuilderFactory Interface: dynamically creates UsageRequestBuilders from various spec sources
-
Method Summary
Modifier and TypeMethodDescriptionmakeUsageRequestBuilder(File specFile, String productType, String eventType, String version, UnitReportingMode calcMode) Provides UsageRequestBuilder based on specs in a filemakeUsageRequestBuilder(InputStream inputStream, String productType, String eventType, String version, UnitReportingMode calcMode) Provides UsageRequestBuilder based on specs in InputStreammakeUsageRequestBuilder(URL url, String productType, String eventType, String version, UnitReportingMode calcMode) Provides UsageRequestBuilder based on specs in URLmakeUsageRequestBuilder(ServiceSpecRepository serviceSpecRepository, String productType, String eventType, String version, UnitReportingMode calcMode) Provides UsageRequestBuilder based on specs in ServiceSpecRepository
-
Method Details
-
makeUsageRequestBuilder
UsageRequestBuilder makeUsageRequestBuilder(ServiceSpecRepository serviceSpecRepository, String productType, String eventType, String version, UnitReportingMode calcMode) throws MessagesUsageException Provides UsageRequestBuilder based on specs in ServiceSpecRepository- Parameters:
serviceSpecRepository- repository where the specs have been loadedproductType- the service id corresponding to this builder instanceeventType- the service context corresponding to this builder instanceversion- the version of the service spec being used.calcMode- indicates whether Cumulative or Incremental accounting style is used.- Returns:
- UsageRequestBuilder
- Throws:
MessagesUsageException- messages exception
-
makeUsageRequestBuilder
UsageRequestBuilder makeUsageRequestBuilder(File specFile, String productType, String eventType, String version, UnitReportingMode calcMode) throws MessagesUsageException, oracle.communication.brm.charging.config.ConfigException Provides UsageRequestBuilder based on specs in a file- Parameters:
specFile- file where the specs areproductType- the service id corresponding to this builder instanceeventType- the service context corresponding to this builder instanceversion- the version of the service spec being used.calcMode- indicates whether Cumulative or Incremental accounting style is used.- Returns:
- UsageRequestBuilder
- Throws:
MessagesUsageException- messages exceptionoracle.communication.brm.charging.config.ConfigException- if provided file contains invalid specs
-
makeUsageRequestBuilder
UsageRequestBuilder makeUsageRequestBuilder(InputStream inputStream, String productType, String eventType, String version, UnitReportingMode calcMode) throws MessagesUsageException, oracle.communication.brm.charging.config.ConfigException Provides UsageRequestBuilder based on specs in InputStream- Parameters:
inputStream- InputStream where the specs areproductType- the service id corresponding to this builder instanceeventType- the service context corresponding to this builder instanceversion- the version of the service spec being used.calcMode- indicates whether Cumulative or Incremental accounting style is used.- Returns:
- UsageRequestBuilder
- Throws:
MessagesUsageException- messages exceptionoracle.communication.brm.charging.config.ConfigException- if provided stream contains invalid specs
-
makeUsageRequestBuilder
UsageRequestBuilder makeUsageRequestBuilder(URL url, String productType, String eventType, String version, UnitReportingMode calcMode) throws MessagesUsageException, oracle.communication.brm.charging.config.ConfigException Provides UsageRequestBuilder based on specs in URL- Parameters:
url- url where the specs areproductType- the service id corresponding to this builder instanceeventType- the service context corresponding to this builder instanceversion- the version of the service spec being used.calcMode- indicates whether Cumulative or Incremental accounting style is used.- Returns:
- UsageRequestBuilder
- Throws:
MessagesUsageException- messages exceptionoracle.communication.brm.charging.config.ConfigException- if provided URL contains invalid specs
-