Interface IOLogFilter

All Known Implementing Classes:
AuthenticationFilter, JSONAuthenticationFilter

public interface IOLogFilter
Class used to filter the input/output/error message's content before they will be logged.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    filterError(T message)
    This method allow to manage the error message, adding or modifying its content.
    <T> T
    filterInput(T message)
    This method allow to manage the input message, adding or modifying its content.
    <T> T
    filterOutput(T message)
    This method allow to manage the output message, adding or modifying its content.
  • Method Details

    • filterInput

      <T> T filterInput(T message)
      This method allow to manage the input message, adding or modifying its content.
      Type Parameters:
      T - the type of the input message. It could be a JsonElement, SOAPMessage, String, etc, depending on the service. So it's important to check che type of the instance and cast the object to the correct class in order to modify it.
      Parameters:
      message - The message
      Returns:
      the message filtered.
    • filterOutput

      <T> T filterOutput(T message)
      This method allow to manage the output message, adding or modifying its content.
      Type Parameters:
      T - the type of the output message. It could be a JsonElement, SOAPMessage, String, etc, depending on the service. So it's important to check che type of the instance and cast the object to the correct class in order to modify it.
      Parameters:
      message - The message
      Returns:
      the message filtered.
    • filterError

      <T> T filterError(T message)
      This method allow to manage the error message, adding or modifying its content.
      Type Parameters:
      T - the type of the error message. It could be a JsonElement, SOAPMessage, String, etc, depending on the service. So it's important to check che type of the instance and cast the object to the correct class in order to modify it.
      Parameters:
      message - The message
      Returns:
      the message filtered.