Package com.helger.phase4.client
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.
Specialized interface for the raw HTTP response consumer.
- Since:
- 0.9.14
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault IAS4RawResponseConsumerChain this instance with another instance of the same type.static IAS4RawResponseConsumerChain two instances of the same type to a single instance.voidhandleResponse(AS4ClientSentMessage<byte[]> aResponseMsg) Handling a HTTP response
-
Method Details
-
handleResponse
Handling a HTTP response- Parameters:
aResponseMsg- The response message in relation to the source message- Throws:
Phase4Exception- In case of error.
-
and
Chain this instance with another instance of the same type. This handler is called first.- Parameters:
rhs- The handler to chain with. May benull.- Returns:
- A non-
nullresponse consumer. - Since:
- 0.13.0
-
and
@Nullable static 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 isnullno chaining happens.- Parameters:
lhs- The first handler to invoke. May benull.rhs- The second handler to invoke. May benull.- Returns:
nullif both parameters arenull.- Since:
- 0.13.0
-