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 |
bindJson(String body,
Type type,
Class<?>... groups)
bind request body to specific type.
|
<I> I |
readJson(String body,
Class<I> clazz)
read request body into new object possibly
|
<I> I |
readJson(String body,
Type type)
read request body into new object possibly
|
public <I> I readJson(String body, Class<I> clazz)
RequestReaderreadJson in interface RequestReaderI - objects typebody - json stringclazz - objects classpublic <I> I readJson(String body, Type type)
RequestReaderreadJson in interface RequestReaderI - objects typebody - json stringtype - objects typepublic <I> I bindJson(String body, Class<I> clazz, Class<?>... groups)
RequestReaderbindJson in interface RequestReaderI - objects typebody - json stringclazz - objects classgroups - validate grouppublic <I> I bindJson(String body, Type type, Class<?>... groups)
RequestReaderbindJson in interface RequestReaderI - objects typebody - json stringtype - objects typegroups - validate groupCopyright © 2023 flmelody. All rights reserved.