Class WriteProfileInterceptorResultToStorage

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, MessageSource, MessageSourceAware, Action

public class WriteProfileInterceptorResultToStorage
extends AbstractProfileInterceptorAction
A profile interceptor action that writes a ProfileInterceptorResult to a StorageService.
Event:
EventIds.PROCEED_EVENT_ID, EventIds.IO_ERROR
  • Field Details

  • Constructor Details

    • WriteProfileInterceptorResultToStorage

      public WriteProfileInterceptorResultToStorage()
  • Method Details

    • doPreExecute

      protected boolean doPreExecute​(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull ProfileInterceptorContext interceptorContext)
      Performs this profile interceptor action's pre-execute step. Default implementation returns true.
      Overrides:
      doPreExecute in class AbstractProfileInterceptorAction
      Parameters:
      profileRequestContext - the current profile request context
      interceptorContext - the current profile interceptor context
      Returns:
      true iff execution should continue
    • doExecute

      protected void doExecute​(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull ProfileInterceptorContext interceptorContext)
      Performs this profile interceptor action. Default implementation does nothing.
      Overrides:
      doExecute in class AbstractProfileInterceptorAction
      Parameters:
      profileRequestContext - the current profile request context
      interceptorContext - the current profile interceptor context
    • store

      protected void store​(@Nonnull ProfileInterceptorResult result) throws IOException
      Store a profile interceptor result.
      Parameters:
      result - the profile interceptor result to be stored
      Throws:
      IOException - if an error occurs