public interface HttpBasicWindwardContext extends WindwardContext
| Modifier and Type | Method and Description |
|---|---|
<I> I |
bindJson(Class<I> clazz,
Class<?>... groups)
bind request body to specific class.
|
<I> I |
bindJson(Type type,
Class<?>... groups)
bind request body to specific class.
|
<M> void |
html(String viewUrl,
M model)
response html directly
|
<I> I |
readJson(Class<I> clazz)
read request body into new object possibly
|
<I> I |
readJson(Type type)
read request body into new object possibly
|
void |
redirect(int code,
String redirectUrl)
redirect
|
void |
redirect(String redirectUrl)
redirect
|
close, getPathVariables, getRequestBody, getRequestParameter, getRequestParameters, isCacheable, isClosed, windwardRequest, write, write, writeJson, writeJson, writeString, writeString<I> I readJson(Class<I> clazz)
I - objects typeclazz - objects class<I> I readJson(Type type)
I - objects typetype - objects type<I> I bindJson(Class<I> clazz, Class<?>... groups)
I - objects typeclazz - objects classgroups - validate group<I> I bindJson(Type type, Class<?>... groups)
I - objects typetype - objects typegroups - validate groupvoid redirect(String redirectUrl)
redirectUrl - location for redirectingvoid redirect(int code,
String redirectUrl)
code - http code of redirectingredirectUrl - location for redirecting<M> void html(String viewUrl, M model)
M - views modelviewUrl - templates locationmodel - templates dataCopyright © 2023 flmelody. All rights reserved.