Skip to content

Commit

Permalink
allow instantiation of RecordingAuditMessageTransmission by the Sprin…
Browse files Browse the repository at this point in the history
…g Boot started
  • Loading branch information
unixoid committed Oct 25, 2023
1 parent 1a261fe commit 6ef6d36
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public enum AuditTransmissionChannel {
NIO_TLS("NIO-TLS", NettyTLSSyslogSenderImpl.class),
VERTX_TLS("VERTX-TLS", VertxTLSSyslogSenderImpl.class),
NETTY_TLS("NETTY-TLS", NettyTLSSyslogSenderImpl.class),
REACTOR_NETTY_TLS("REACTOR-NETTY-TLS", ReactorNettyTLSSyslogSenderImpl.class);
REACTOR_NETTY_TLS("REACTOR-NETTY-TLS", ReactorNettyTLSSyslogSenderImpl.class),
RECORDING("RECORDING", RecordingAuditMessageTransmission.class);

private final String protocolName;
private final Class<? extends AuditTransmissionProtocol> protocol;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import org.openehealth.ipf.commons.audit.AuditContext;
import org.openehealth.ipf.commons.audit.AuditMetadataProvider;
import org.openehealth.ipf.commons.audit.TlsParameters;

import java.util.*;

Expand All @@ -30,6 +31,15 @@
*/
public class RecordingAuditMessageTransmission implements AuditTransmissionProtocol {

public RecordingAuditMessageTransmission() {
}

/**
* This constructor is required to allow instantiation by the Spring Boot starter.
*/
public RecordingAuditMessageTransmission(TlsParameters dummy) {
}

private final List<String> messages = new ArrayList<>();

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,14 @@
package org.openehealth.ipf.platform.camel.ihe.fhir.chppqm.chppq5;

import org.apache.camel.builder.RouteBuilder;
import org.hl7.fhir.r4.model.Bundle;
import org.hl7.fhir.r4.model.Consent;
import org.openehealth.ipf.commons.ihe.fhir.Constants;
import org.openehealth.ipf.commons.ihe.fhir.chppqm.ChPpqmConsentCreator;
import org.openehealth.ipf.commons.ihe.fhir.chppqm.ChPpqmUtils;
import org.openehealth.ipf.commons.ihe.fhir.chppqm.chppq5.ChPpq5SearchParameters;
import org.openehealth.ipf.platform.camel.core.adapter.ValidatorAdapter;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

import static org.openehealth.ipf.commons.ihe.fhir.chppqm.ChPpqmConsentCreator.*;
import static org.openehealth.ipf.commons.ihe.fhir.chppqm.ChPpqmConsentCreator.createUuid;
import static org.openehealth.ipf.platform.camel.ihe.fhir.core.FhirCamelValidators.*;

public class ChPpq5TestRouteBuilder extends RouteBuilder {
Expand Down

0 comments on commit 6ef6d36

Please sign in to comment.