com.dyuproject.web.rest.consumer
Class SimpleJSONConsumer
java.lang.Object
com.dyuproject.web.rest.AbstractLifeCycle
com.dyuproject.web.rest.consumer.AbstractConsumer
com.dyuproject.web.rest.consumer.SimpleJSONConsumer
- All Implemented Interfaces:
- LifeCycle, ValidatingConsumer
public final class SimpleJSONConsumer
- extends AbstractConsumer
Consumes json content and converts it to pojos.
- Author:
- David Yu
- Date created:
- Jan 18, 2009
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_DISPATCHER_NAME
public static final String DEFAULT_DISPATCHER_NAME
- See Also:
- Constant Field Values
CACHE_KEY
public static final String CACHE_KEY
SimpleJSONConsumer
public SimpleJSONConsumer()
setDefaultContentType
public static void setDefaultContentType(String defaultContentType)
getDefaultContentType
protected String getDefaultContentType()
- Specified by:
getDefaultContentType
in class AbstractConsumer
init
protected void init()
- Specified by:
init
in class AbstractLifeCycle
merge
public final boolean merge(Object pojo,
RequestContext rc)
throws IOException,
ValidationException
- Throws:
IOException
ValidationException
consume
public final Object consume(RequestContext rc)
throws IOException,
ValidationException
- Throws:
IOException
ValidationException
Copyright © 2008-2013. All Rights Reserved.