public abstract class AbstractJsonviewReturnValueHandler<T> extends Object implements org.springframework.web.method.support.HandlerMethodReturnValueHandler
| 限定符和类型 | 字段和说明 |
|---|---|
protected com.github.developframework.jsonview.core.JsonviewFactory |
jsonviewFactory |
| 构造器和说明 |
|---|
AbstractJsonviewReturnValueHandler(com.github.developframework.jsonview.core.JsonviewFactory jsonviewFactory) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.springframework.http.server.ServletServerHttpResponse |
createOutputMessage(org.springframework.web.context.request.NativeWebRequest webRequest) |
protected abstract com.github.developframework.jsonview.data.DataModel |
dataModel(T returnValue) |
protected com.fasterxml.jackson.core.JsonEncoding |
getJsonEncoding(org.springframework.http.MediaType contentType) |
com.github.developframework.jsonview.core.JsonviewFactory |
getJsonviewFactory() |
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 |
jsonviewId(T returnValue,
org.springframework.core.MethodParameter methodParameter) |
protected abstract String |
namespace(T returnValue,
org.springframework.core.MethodParameter methodParameter) |
protected abstract Class<T> |
returnType() |
boolean |
supportsReturnType(org.springframework.core.MethodParameter returnType) |
protected com.github.developframework.jsonview.core.JsonviewFactory jsonviewFactory
public AbstractJsonviewReturnValueHandler(com.github.developframework.jsonview.core.JsonviewFactory jsonviewFactory)
public com.github.developframework.jsonview.core.JsonviewFactory getJsonviewFactory()
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)
protected abstract String jsonviewId(T returnValue, org.springframework.core.MethodParameter methodParameter)
protected abstract com.github.developframework.jsonview.data.DataModel dataModel(T returnValue)
Copyright © 2016–2017. All rights reserved.