All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bdware.doip.audit.writer.ConfigurableLogWriter Maven / Gradle / Ivy

There is a newer version: 1.5.4
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy