Class AbstractAgentAction

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, MessageSource, MessageSourceAware, Action
Direct Known Subclasses:
AbstractApplicationAction, DecodeAgentRequest, DoSealerOperation, DoSessionCacheOperation, DoStorageOperation, ResolveApplication, ValidateAgentAddress, ValidateCachedAuthentication

public abstract class AbstractAgentAction extends AbstractAgentRequestAction
Base class for actions that need access to the Agent in an AgentRequestContext.

This class guarantees that the context and agent exists after doPreExecute(ProfileRequestContext) runs and returns true.

Event:
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_PROFILE_CTX
Precondition:
ensureAgentRequestContext().getAgent() != null
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
    • agent

      @NonnullBeforeExec private Agent agent
      Cached agent from context.
  • Constructor Details

    • AbstractAgentAction

      public AbstractAgentAction()
  • Method Details