Class SampleOCSByPassExtension
java.lang.Object
oracle.communication.brm.charging.sdk.extensions.SampleOCSByPassExtension
- All Implemented Interfaces:
OCSByPassExtension
,oracle.communication.brm.charging.extensions.framework.ExtensionCallback<ExtensionContext>
Sample ocs bypass extension, this enables manipulating request avp from diameter message and create necessary diameter response.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleBypassOCSRequest
(BFTContext extensionContext) This method is invoked each time a Diameter Gy Request is received by the ECE DiameterGateway.void
initialize
(ExtensionContext extensionContext) method is invoked once at ECS Node startup time to allow integrators a spot to populate private data members that are required by the extension callback.void
shutdown
(ExtensionContext extensionContext) method is invoked once at ECS Node shutdown time to allow integrators a spot to release any resources that were acquired by the Extension.
-
Constructor Details
-
SampleOCSByPassExtension
public SampleOCSByPassExtension()
-
-
Method Details
-
handleBypassOCSRequest
Description copied from interface:OCSByPassExtension
This method is invoked each time a Diameter Gy Request is received by the ECE DiameterGateway. This extension applies to ALL types of gy traffic. (ie Usage, Topup and BalanceQuery) This method is called prior to creating an ECE UsageRequest from the incoming Gy Request. The supplied context allows access to Request AVPs. This will add the AVP's into the diameter request and which will be utilized for creation of diameterResponse in case of a ocsByPassMode.- Specified by:
handleBypassOCSRequest
in interfaceOCSByPassExtension
- Parameters:
extensionContext
- the available context data for this callout.- Throws:
ExtensionException
- if a non-recoverable error occurs during handleRequestReceived.
-
initialize
Description copied from interface:oracle.communication.brm.charging.extensions.framework.ExtensionCallback
method is invoked once at ECS Node startup time to allow integrators a spot to populate private data members that are required by the extension callback.- Specified by:
initialize
in interfaceoracle.communication.brm.charging.extensions.framework.ExtensionCallback<ExtensionContext>
- Parameters:
extensionContext
- the context which exposes objects that are needed at initialization time.- Throws:
ExtensionException
- if a non-recoverable error occurs during initialization.
-
shutdown
Description copied from interface:oracle.communication.brm.charging.extensions.framework.ExtensionCallback
method is invoked once at ECS Node shutdown time to allow integrators a spot to release any resources that were acquired by the Extension.- Specified by:
shutdown
in interfaceoracle.communication.brm.charging.extensions.framework.ExtensionCallback<ExtensionContext>
- Parameters:
extensionContext
- the context which exposes objects that are needed at shutdown time.- Throws:
ExtensionException
- if a non-recoverable error occurs during shutdown.
-