Class DefaultTraceManager
java.lang.Object
org.kopi.ebics.session.DefaultTraceManager
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionConstructs a newTraceMangerwith trace option enabled.DefaultTraceManager(boolean isTraceEnabled) Constructs a newTraceMangerto manage transfer traces.DefaultTraceManager(File traceDir, boolean isTraceEnabled) Constructs a newTraceMangerto manage transfer traces. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the traces created for a given ebics sessionvoidremove(EbicsRootElement element) Removes anEbicsRootElementfrom trace directory.voidsetTraceDirectory(File traceDir) Sets the trace directoryvoidsetTraceEnabled(boolean enabled) Enables or disables the trace featurevoidtrace(EbicsRootElement element) Saves theEbicsRootElementin the traces directory.
-
Constructor Details
-
DefaultTraceManager
Constructs a newTraceMangerto manage transfer traces.- Parameters:
traceDir- the trace directoryisTraceEnabled- is trace enabled?
-
DefaultTraceManager
public DefaultTraceManager(boolean isTraceEnabled) Constructs a newTraceMangerto manage transfer traces.- Parameters:
isTraceEnabled- is trace enabled?
-
DefaultTraceManager
public DefaultTraceManager()Constructs a newTraceMangerwith trace option enabled.
-
-
Method Details
-
trace
Description copied from interface:TraceManagerSaves theEbicsRootElementin the traces directory. This directory may be specified by theEbicsConfigurationclient configuration.- Specified by:
tracein interfaceTraceManager- Parameters:
element- the element to trace- Throws:
EbicsException- cannot trace the ebics element- See Also:
-
remove
Description copied from interface:TraceManagerRemoves anEbicsRootElementfrom trace directory.- Specified by:
removein interfaceTraceManager- Parameters:
element- the element to ve removed.
-
clear
public void clear()Description copied from interface:TraceManagerClears the traces created for a given ebics session- Specified by:
clearin interfaceTraceManager
-
setTraceDirectory
Description copied from interface:TraceManagerSets the trace directory- Specified by:
setTraceDirectoryin interfaceTraceManager
-
setTraceEnabled
public void setTraceEnabled(boolean enabled) Description copied from interface:TraceManagerEnables or disables the trace feature- Specified by:
setTraceEnabledin interfaceTraceManager- Parameters:
enabled- is trace enabled?
-