Class DefaultTraceManager

java.lang.Object
org.kopi.ebics.session.DefaultTraceManager
All Implemented Interfaces:
TraceManager

public class DefaultTraceManager extends Object implements TraceManager
The DefaultTraceManager aims to trace an ebics transferable element in an instance of java.io.File then saved to a trace directory. The manager can delete all traces file if the configuration does not offer tracing support. see isTraceEnabled()
  • Constructor Details

    • DefaultTraceManager

      public DefaultTraceManager(File traceDir, boolean isTraceEnabled)
      Constructs a new TraceManger to manage transfer traces.
      Parameters:
      traceDir - the trace directory
      isTraceEnabled - is trace enabled?
    • DefaultTraceManager

      public DefaultTraceManager(boolean isTraceEnabled)
      Constructs a new TraceManger to manage transfer traces.
      Parameters:
      isTraceEnabled - is trace enabled?
    • DefaultTraceManager

      public DefaultTraceManager()
      Constructs a new TraceManger with trace option enabled.
  • Method Details

    • trace

      public void trace(EbicsRootElement element) throws EbicsException
      Description copied from interface: TraceManager
      Saves the EbicsRootElement in the traces directory. This directory may be specified by the EbicsConfiguration client configuration.
      Specified by:
      trace in interface TraceManager
      Parameters:
      element - the element to trace
      Throws:
      EbicsException - cannot trace the ebics element
      See Also:
    • remove

      public void remove(EbicsRootElement element)
      Description copied from interface: TraceManager
      Removes an EbicsRootElement from trace directory.
      Specified by:
      remove in interface TraceManager
      Parameters:
      element - the element to ve removed.
    • clear

      public void clear()
      Description copied from interface: TraceManager
      Clears the traces created for a given ebics session
      Specified by:
      clear in interface TraceManager
    • setTraceDirectory

      public void setTraceDirectory(File traceDir)
      Description copied from interface: TraceManager
      Sets the trace directory
      Specified by:
      setTraceDirectory in interface TraceManager
    • setTraceEnabled

      public void setTraceEnabled(boolean enabled)
      Description copied from interface: TraceManager
      Enables or disables the trace feature
      Specified by:
      setTraceEnabled in interface TraceManager
      Parameters:
      enabled - is trace enabled?