- Type Parameters:
HEADER
- The type of the head of theMessage
describing theMessage
(e.g. recipients).BODY
- The type of the payload being carried by theMessage
.
- All Superinterfaces:
BodyAccessor<BODY>
,HeaderAccessor<HEADER>
A
Message
consists of the least required information to send a
message.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.BodyAccessor
BodyAccessor.BodyBuilder<T,
B extends BodyAccessor.BodyBuilder<T, B>>, BodyAccessor.BodyMutator<T>, BodyAccessor.BodyProperty<T> Nested classes/interfaces inherited from interface org.refcodes.mixin.HeaderAccessor
HeaderAccessor.HeaderBuilder<T,
B extends HeaderAccessor.HeaderBuilder<T, B>>, HeaderAccessor.HeaderMutator<T>, HeaderAccessor.HeaderProperty<T> -
Method Summary
-
Method Details
-
getHeader
HEADER getHeader()Retrieves the value from the header property. The header describes theMessage
.- Specified by:
getHeader
in interfaceHeaderAccessor<HEADER>
- Returns:
- The header stored by the header property.
-
getBody
BODY getBody()Retrieves the value from the body property. Retrieves the payload carried by theMessage
.- Specified by:
getBody
in interfaceBodyAccessor<HEADER>
- Returns:
- The according payload.
-