com.bstek.dorado.view.service
public abstract class DataServiceProcessorSupport extends java.lang.Object implements ServiceProcessor, DataTypeResolver
Modifier and Type | Class and Description |
---|---|
static class |
DataServiceProcessorSupport.ParsedDataObjectName |
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
PRIVATE_VIEW_OBJECT_PREFIX |
protected static java.lang.String |
VIEW_STATE_ATTRIBUTE_KEY |
protected ViewConfigManager |
viewConfigManager |
Constructor and Description |
---|
DataServiceProcessorSupport() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doExecute(java.io.Writer writer,
org.codehaus.jackson.node.ObjectNode objectNode,
DoradoContext context) |
void |
execute(java.io.Writer writer,
org.codehaus.jackson.node.ObjectNode objectNode,
DoradoContext context)
执行服务处理。
|
Outputter |
getDataOutputter() |
DataType |
getDataType(java.lang.String dataTypeName) |
protected ViewConfig |
getViewConfig(DoradoContext context,
java.lang.String viewName) |
protected java.lang.Object |
jsonToJavaObject(org.codehaus.jackson.JsonNode jsonNode,
DataType dataType,
java.lang.Class<?> targetType,
boolean proxy) |
protected void |
outputData(java.lang.Object result,
OutputContext outputContext) |
protected void |
outputDataTypes(java.util.Map<java.lang.String,DataType> includeDataTypes,
OutputContext outputContext) |
protected void |
outputResult(java.lang.Object result,
OutputContext context) |
void |
setDataOutputter(Outputter dataOutputter) |
void |
setDataTypeManager(DataTypeManager dataTypeManager) |
void |
setIncludeDataTypesOutputter(Outputter includeDataTypesOutputter) |
void |
setViewConfigManager(ViewConfigManager viewConfigManager) |
protected static final java.lang.String VIEW_STATE_ATTRIBUTE_KEY
protected static final java.lang.String PRIVATE_VIEW_OBJECT_PREFIX
protected ViewConfigManager viewConfigManager
public void setDataTypeManager(DataTypeManager dataTypeManager)
public void setViewConfigManager(ViewConfigManager viewConfigManager)
public Outputter getDataOutputter()
public void setDataOutputter(Outputter dataOutputter)
public void setIncludeDataTypesOutputter(Outputter includeDataTypesOutputter)
public final void execute(java.io.Writer writer, org.codehaus.jackson.node.ObjectNode objectNode, DoradoContext context) throws java.lang.Exception
ServiceProcessor
execute
in interface ServiceProcessor
writer
- 面向客户端Response输出流的输出器。context
- Dorado上下文对象。java.lang.Exception
protected abstract void doExecute(java.io.Writer writer, org.codehaus.jackson.node.ObjectNode objectNode, DoradoContext context) throws java.lang.Exception
java.lang.Exception
protected void outputResult(java.lang.Object result, OutputContext context) throws java.lang.Exception
java.lang.Exception
protected void outputDataTypes(java.util.Map<java.lang.String,DataType> includeDataTypes, OutputContext outputContext) throws java.lang.Exception
java.lang.Exception
protected void outputData(java.lang.Object result, OutputContext outputContext) throws java.lang.Exception
java.lang.Exception
protected ViewConfig getViewConfig(DoradoContext context, java.lang.String viewName) throws java.lang.Exception
java.lang.Exception
public DataType getDataType(java.lang.String dataTypeName) throws java.lang.Exception
getDataType
in interface DataTypeResolver
java.lang.Exception
protected java.lang.Object jsonToJavaObject(org.codehaus.jackson.JsonNode jsonNode, DataType dataType, java.lang.Class<?> targetType, boolean proxy) throws java.lang.Exception
java.lang.Exception
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.