Class SampleOCSByPassExtension

java.lang.Object
oracle.communication.brm.charging.sdk.extensions.SampleOCSByPassExtension
All Implemented Interfaces:
OCSByPassExtension, oracle.communication.brm.charging.extensions.framework.ExtensionCallback<ExtensionContext>

public class SampleOCSByPassExtension extends Object implements OCSByPassExtension
Sample ocs bypass extension, this enables manipulating request avp from diameter message and create necessary diameter response.
  • Constructor Details

    • SampleOCSByPassExtension

      public SampleOCSByPassExtension()
  • Method Details

    • handleBypassOCSRequest

      public void handleBypassOCSRequest(BFTContext extensionContext) throws ExtensionException
      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 interface OCSByPassExtension
      Parameters:
      extensionContext - the available context data for this callout.
      Throws:
      ExtensionException - if a non-recoverable error occurs during handleRequestReceived.
    • initialize

      public void initialize(ExtensionContext extensionContext) throws ExtensionException
      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 interface oracle.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

      public void shutdown(ExtensionContext extensionContext) throws ExtensionException
      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 interface oracle.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.