org.skyscreamer.yoga.springmvc.view
Class JsonSelectorView
java.lang.Object
org.skyscreamer.yoga.springmvc.view.AbstractYogaView
org.skyscreamer.yoga.springmvc.view.JsonSelectorView
- All Implemented Interfaces:
- org.springframework.web.servlet.View
public class JsonSelectorView
- extends AbstractYogaView
| Fields inherited from interface org.springframework.web.servlet.View |
RESPONSE_STATUS_ATTRIBUTE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonSelectorView
public JsonSelectorView()
render
public void render(OutputStream outputStream,
Selector selector,
Object value)
throws IOException
- Specified by:
render in class AbstractYogaView
- Throws:
IOException
getObjectMapper
protected org.codehaus.jackson.map.ObjectMapper getObjectMapper()
getSingleResult
protected Map<String,Object> getSingleResult(Object value,
Selector selector)
getContentType
public String getContentType()
getHrefSuffix
public String getHrefSuffix()
- Specified by:
getHrefSuffix in class AbstractYogaView
Copyright © 2011. All Rights Reserved.