public interface MessageDecoder
Modifier and Type | Field and Description |
---|---|
static MessageDecoder |
UNSUPPORTED_MEDIA_TYPE
Resolve parsing as
StatusCode.UNSUPPORTED_MEDIA_TYPE . |
Modifier and Type | Method and Description |
---|---|
<T> T |
decode(Context ctx,
Type type)
Parse HTTP body into the given type.
|
static final MessageDecoder UNSUPPORTED_MEDIA_TYPE
StatusCode.UNSUPPORTED_MEDIA_TYPE
.@Nonnull <T> T decode(@Nonnull Context ctx, @Nonnull Type type) throws Exception
T
- Dynamic binding of the target type.ctx
- Web context.type
- Target/expected type.Exception
- Is something goes wrong.Copyright © 2020. All rights reserved.