public abstract class AbstractKiteReturnValueHandler<T> extends Object implements org.springframework.web.method.support.HandlerMethodReturnValueHandler
| 限定符和类型 | 字段和说明 |
|---|---|
protected KiteFactory |
kiteFactory |
| 构造器和说明 |
|---|
AbstractKiteReturnValueHandler(KiteFactory kiteFactory) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.springframework.http.server.ServletServerHttpResponse |
createOutputMessage(org.springframework.web.context.request.NativeWebRequest webRequest) |
protected abstract DataModel |
dataModel(T returnValue,
org.springframework.core.MethodParameter methodParameter)
取得 dataModel
|
protected com.fasterxml.jackson.core.JsonEncoding |
getJsonEncoding(org.springframework.http.MediaType contentType) |
void |
handleReturnValue(Object returnValue,
org.springframework.core.MethodParameter methodParameter,
org.springframework.web.method.support.ModelAndViewContainer mavContainer,
org.springframework.web.context.request.NativeWebRequest webRequest) |
protected abstract String |
namespace(T returnValue,
org.springframework.core.MethodParameter methodParameter)
取得 kite template 命名空间
|
protected abstract Class<T> |
returnType()
取得返回类型
|
boolean |
supportsReturnType(org.springframework.core.MethodParameter returnType) |
protected abstract String |
templateId(T returnValue,
org.springframework.core.MethodParameter methodParameter)
取得 kite template id
|
protected abstract TemplateType |
templateType(T returnValue,
org.springframework.core.MethodParameter methodParameter)
取得 template type
|
protected KiteFactory kiteFactory
public AbstractKiteReturnValueHandler(KiteFactory kiteFactory)
protected org.springframework.http.server.ServletServerHttpResponse createOutputMessage(org.springframework.web.context.request.NativeWebRequest webRequest)
protected com.fasterxml.jackson.core.JsonEncoding getJsonEncoding(org.springframework.http.MediaType contentType)
public boolean supportsReturnType(org.springframework.core.MethodParameter returnType)
supportsReturnType 在接口中 org.springframework.web.method.support.HandlerMethodReturnValueHandlerpublic void handleReturnValue(Object returnValue, org.springframework.core.MethodParameter methodParameter, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest) throws Exception
handleReturnValue 在接口中 org.springframework.web.method.support.HandlerMethodReturnValueHandlerExceptionprotected abstract String namespace(T returnValue, org.springframework.core.MethodParameter methodParameter)
returnValue - methodParameter - protected abstract String templateId(T returnValue, org.springframework.core.MethodParameter methodParameter)
returnValue - methodParameter - protected abstract TemplateType templateType(T returnValue, org.springframework.core.MethodParameter methodParameter)
returnValue - methodParameter - Copyright © 2018. All rights reserved.