public interface MessageDecoder
Parse HTTP body into a target type.
- Since:
- 2.0.0
- Author:
- edgar
-
Field Summary
Modifier and TypeFieldDescriptionstatic final MessageDecoder
Resolve parsing asStatusCode.UNSUPPORTED_MEDIA_TYPE
. -
Method Summary
-
Field Details
-
UNSUPPORTED_MEDIA_TYPE
Resolve parsing asStatusCode.UNSUPPORTED_MEDIA_TYPE
.
-
-
Method Details
-
decode
Parse HTTP body into the given type.- Parameters:
ctx
- Web context.type
- Target/expected type.- Returns:
- An instance of the target type.
- Throws:
Exception
- Is something goes wrong.
-