Interface AuditEventMapper

All Known Implementing Classes:
JsonAuditEventMapper

public interface AuditEventMapper
An interface that defines how an AuditEvent is written to a string, and read from a string.
Author:
Martin Lindström
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.boot.actuate.audit.AuditEvent
    read(String event)
    Deserializes AuditEvent from its string representation.
    write(org.springframework.boot.actuate.audit.AuditEvent event)
    Serializes the AuditEvent to a String.
  • Method Details

    • write

      String write(org.springframework.boot.actuate.audit.AuditEvent event)
      Serializes the AuditEvent to a String.
      Parameters:
      event - to serialize
      Returns:
      the string
    • read

      org.springframework.boot.actuate.audit.AuditEvent read(String event)
      Deserializes AuditEvent from its string representation.
      Parameters:
      event - to deserialize
      Returns:
      an AuditEvent