Package de.gematik.test.tiger.proxy
Class MockServerToRbelConverter
java.lang.Object
de.gematik.test.tiger.proxy.MockServerToRbelConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertErrorResponse(HttpRequest request, String protocolAndHost, TigerProxyRoutingException routingException, AtomicReference<String> previousMessageReference) convertRequest(HttpRequest request, String protocolAndHost, Optional<ZonedDateTime> timestamp, AtomicReference<String> previousMessageReference) convertResponse(HttpRequest request, HttpResponse response, String senderUrl, String receiverUrl, Optional<ZonedDateTime> timestamp, AtomicReference<String> previousMessageReference) BiConsumer<TigerProxyRoutingException,io.netty.channel.ChannelHandlerContext> requestToRbelMessage(HttpRequest request) responseToRbelMessage(HttpResponse response, HttpRequest request)
-
Constructor Details
-
MockServerToRbelConverter
@ConstructorProperties("rbelConverter") public MockServerToRbelConverter(RbelConverter rbelConverter)
-
-
Method Details
-
convertResponse
public CompletableFuture<RbelElement> convertResponse(HttpRequest request, HttpResponse response, String senderUrl, String receiverUrl, Optional<ZonedDateTime> timestamp, AtomicReference<String> previousMessageReference) -
convertRequest
public CompletableFuture<RbelElement> convertRequest(HttpRequest request, String protocolAndHost, Optional<ZonedDateTime> timestamp, AtomicReference<String> previousMessageReference) -
convertErrorResponse
public RbelElement convertErrorResponse(HttpRequest request, String protocolAndHost, TigerProxyRoutingException routingException, AtomicReference<String> previousMessageReference) -
responseToRbelMessage
-
requestToRbelMessage
-
exceptionCallback
public BiConsumer<TigerProxyRoutingException,io.netty.channel.ChannelHandlerContext> exceptionCallback()
-