public class DefaultMvcResponse extends Object implements MutableMvcResponse
Modifier and Type | Field and Description |
---|---|
protected DataType |
dataType |
protected Map<String,List<Object>> |
header |
protected Set<String> |
headerNames |
protected MvcRequest |
request |
protected Object |
result |
Constructor and Description |
---|
DefaultMvcResponse() |
Modifier and Type | Method and Description |
---|---|
MvcRequest |
getRequest() |
Object |
getResult() |
DataType |
getType() |
void |
process(Object object) |
OutputStream |
processStream() |
void |
setHeader(String name,
Object value) |
void |
setRequest(MvcRequest value) |
void |
setResult(Object value) |
void |
setType(DataType value) |
protected MvcRequest request
protected DataType dataType
protected Object result
public MvcRequest getRequest()
getRequest
in interface MvcResponse
public void process(Object object)
process
in interface MvcResponse
public OutputStream processStream() throws IOException
processStream
in interface MvcResponse
IOException
public void setHeader(String name, Object value)
setHeader
in interface MvcResponse
public DataType getType()
getType
in interface MvcResponse
public Object getResult()
getResult
in interface MvcResponse
public void setResult(Object value)
setResult
in interface MutableMvcResponse
public void setRequest(MvcRequest value)
setRequest
in interface MutableMvcResponse
public void setType(DataType value)
setType
in interface MvcResponse
Copyright © 2018 Brandao. All rights reserved.