public abstract class AbstractHttpWindwardContext extends AbstractWindwardContext implements HttpBasicWindwardContext
windwardRequest, windwardResponse| Modifier | Constructor and Description |
|---|---|
protected |
AbstractHttpWindwardContext(WindwardRequest windwardRequest,
WindwardResponse windwardResponse) |
| 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, isClosed, windwardRequest, write, write, writeJson, writeJson, writeString, writeStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getPathVariables, getRequestBody, getRequestParameter, getRequestParameters, isCacheable, isClosed, windwardRequest, write, write, writeJson, writeJson, writeString, writeStringprotected AbstractHttpWindwardContext(WindwardRequest windwardRequest, WindwardResponse windwardResponse)
public <I> I readJson(Class<I> clazz)
readJson in interface HttpBasicWindwardContextI - objects typeclazz - objects classpublic <I> I readJson(Type type)
readJson in interface HttpBasicWindwardContextI - objects typetype - objects typepublic <I> I bindJson(Class<I> clazz, Class<?>... groups)
bindJson in interface HttpBasicWindwardContextI - objects typeclazz - objects classgroups - validate grouppublic <I> I bindJson(Type type, Class<?>... groups)
bindJson in interface HttpBasicWindwardContextI - objects typetype - objects typegroups - validate grouppublic void redirect(String redirectUrl)
redirect in interface HttpBasicWindwardContextredirectUrl - location for redirectingpublic void redirect(int code,
String redirectUrl)
redirect in interface HttpBasicWindwardContextcode - http code of redirectingredirectUrl - location for redirectingpublic <M> void html(String viewUrl, M model)
HttpBasicWindwardContexthtml in interface HttpBasicWindwardContextM - views modelviewUrl - templates locationmodel - templates dataCopyright © 2023 flmelody. All rights reserved.