Module io.jooby
Package io.jooby

Interface MessageDecoder


public interface MessageDecoder
Parse HTTP body into a target type.
Since:
2.0.0
Author:
edgar
  • Field Details

  • Method Details

    • decode

      @NonNull Object decode(@NonNull Context ctx, @NonNull Type type) throws Exception
      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.