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

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

There is a newer version: 1.5.4
Show newest version
package org.bdware.doip.audit.writer;

public class AuditProtocalLog extends AuditLog {
    long time;
    String eventType;

    public void setClientPubkey(String signer) {
        if (this.client == null) client = new ClientInfo();
        client.client_pubkey = signer;
    }

    public void setClientIP(String clientIP) {
        if (this.client == null) client = new ClientInfo();
        client.client_ip = clientIP;
    }

    public void setClientDoId(String clientDoId) {
        if (this.client == null) client = new ClientInfo();
        client.client_doid = clientDoId;
    }

    public void setServerPubkey(String signer) {
        if (this.server == null) server = new ServerInfo();
        server.server_pubkey = signer;
    }

    public void setServerIP(String serverIP) {
        if (this.server == null) server = new ServerInfo();
        server.server_ip = serverIP;
    }

    public void setServerDoId(String serverDoId) {
        if (this.server == null) server = new ServerInfo();
        server.server_doid = serverDoId;
    }


    static class ServerInfo {
        String server_pubkey;
        String server_ip;
        String server_doid;
    }

    static class ClientInfo {
        String client_pubkey;
        String client_ip;
        String client_doid;
    }
    static class DoidInfo {
        String do_prefix;
        String do_repo;
        String do_data_id;
    }

    ServerInfo server;
    ClientInfo client;
    DoidInfo doid;
    String op;
    String status_code;
    String request_hash;
    String response_hash;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy