public class DefaultRequestReader extends Object implements RequestReader
| Constructor and Description |
|---|
DefaultRequestReader() |
| Modifier and Type | Method and Description |
|---|---|
<I> I |
bindJson(String body,
Class<I> clazz,
Class<?>... groups)
bind request body to specific class.
|
<I> I |
readJson(String body,
Class<I> clazz)
read request body into new object possibly
|
public <I> I readJson(String body, Class<I> clazz)
RequestReaderreadJson in interface RequestReaderI - objects typeclazz - objects classpublic <I> I bindJson(String body, Class<I> clazz, Class<?>... groups)
RequestReaderbindJson in interface RequestReaderI - objects typeclazz - objects classgroups - validate groupCopyright © 2023 flmelody. All rights reserved.