org.bdware.doip.audit.writer.ConfigurableLogWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of doip-audit-tool Show documentation
Show all versions of doip-audit-tool Show documentation
doip audit tool developed by bdware
package org.bdware.doip.audit.writer;
import org.bdware.doip.codec.doipMessage.DoipMessage;
import org.bdware.irp.irplib.core.IrpMessage;
public class ConfigurableLogWriter extends LogWriter {
LogWriter writer;
public void setWriter(LogWriter writer) {
this.writer = writer;
}
@Override
public void write(AuditLog log) {
this.writer.write(log);
}
@Override
public AuditLog extract(EndpointContext context, IrpMessage req, IrpMessage resp) {
return writer.extract(context, req, resp);
}
@Override
public AuditLog extract(EndpointContext ctx, DoipMessage req, DoipMessage resp) {
return writer.extract(ctx, req, resp);
}
}