Interface IAS4RawResponseConsumer

All Known Implementing Classes:
AbstractAS4RawResponseConsumer, AS4RawResponseConsumerWriteToFile
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IAS4RawResponseConsumer
Specialized interface for the raw HTTP response consumer.
Since:
0.9.14
Author:
Philip Helger
  • Method Details

    • handleResponse

      void handleResponse(@NonNull AS4ClientSentMessage<byte[]> aResponseMsg) throws Phase4Exception
      Handling a HTTP response
      Parameters:
      aResponseMsg - The response message in relation to the source message
      Throws:
      Phase4Exception - In case of error.
    • and

      default @NonNull IAS4RawResponseConsumer and(@Nullable IAS4RawResponseConsumer rhs)
      Chain this instance with another instance of the same type. This handler is called first.
      Parameters:
      rhs - The handler to chain with. May be null.
      Returns:
      A non-null response consumer.
      Since:
      0.13.0
    • and

      static @Nullable IAS4RawResponseConsumer and(@Nullable IAS4RawResponseConsumer lhs, @Nullable IAS4RawResponseConsumer rhs)
      Chain two instances of the same type to a single instance. This first handler is called first, the second handler is called afterwards. If any of the two parameters is null no chaining happens.
      Parameters:
      lhs - The first handler to invoke. May be null.
      rhs - The second handler to invoke. May be null.
      Returns:
      null if both parameters are null.
      Since:
      0.13.0