Class SampleHTTPExtension

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

public class SampleHTTPExtension extends Object implements HTTPExtension
  • Field Details

    • HTTP_REDIRECT_INDICATION

      public static final int HTTP_REDIRECT_INDICATION
      See Also:
  • Constructor Details

    • SampleHTTPExtension

      public SampleHTTPExtension()
  • Method Details

    • 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>
      Specified by:
      initialize in interface HTTPExtension
      Parameters:
      extensionContext - the available context data for this callout.
      Throws:
      ExtensionException - if a non-recoverable error occurs during handleRequestReceived.
    • handleRequestReceived

      public void handleRequestReceived(HTTPPreProcessorExtensionContext extensionContext) throws ExtensionException
      Specified by:
      handleRequestReceived in interface HTTPExtension
      Parameters:
      extensionContext - the available context data for this callout.
      Throws:
      ExtensionException - if a non-recoverable error occurs during handleRequestReceived.
    • handlePreOCS

      public void handlePreOCS(HTTPPreOCSExtensionContext extensionContext) throws ExtensionException
      Specified by:
      handlePreOCS in interface HTTPExtension
      Parameters:
      extensionContext - the available context data for this callout.
      Throws:
      ExtensionException - if a non-recoverable error occurs during handleRequestReceived.
    • handlePostOCS

      public void handlePostOCS(HTTPPostOCSExtensionContext extensionContext) throws ExtensionException
      Specified by:
      handlePostOCS in interface HTTPExtension
      Parameters:
      extensionContext - the available context data for this callout.
      Throws:
      ExtensionException - if a non-recoverable error occurs during handleRequestReceived.
    • handlePostOCSBalanceQuery

      public void handlePostOCSBalanceQuery(HTTPPostOCSBalanceQueryExtensionContext extensionContext) throws ExtensionException
      Specified by:
      handlePostOCSBalanceQuery in interface HTTPExtension
      Parameters:
      extensionContext - the available context data for this callout.
      Throws:
      ExtensionException - if a non-recoverable error occurs during handleRequestReceived.
    • 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.