com.dyuproject.web.rest.consumer
Class SimpleParameterConsumer
java.lang.Object
com.dyuproject.web.rest.AbstractLifeCycle
com.dyuproject.web.rest.consumer.AbstractConsumer
com.dyuproject.web.rest.consumer.SimpleParameterConsumer
- All Implemented Interfaces:
- LifeCycle, ValidatingConsumer
public final class SimpleParameterConsumer
- extends AbstractConsumer
Consumes request parameters 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_CONTENT_TYPE
public static final String DEFAULT_CONTENT_TYPE
- See Also:
- Constant Field Values
DEFAULT_RESPONSE_CONTENT_TYPE
public static final String DEFAULT_RESPONSE_CONTENT_TYPE
- See Also:
- Constant Field Values
SimpleParameterConsumer
public SimpleParameterConsumer()
generateDefaultPojoAttrName
public static String generateDefaultPojoAttrName(Class<?> clazz)
getDefaultContentType
protected String getDefaultContentType()
- Specified by:
getDefaultContentType
in class AbstractConsumer
getDefaultResponseContentType
protected String getDefaultResponseContentType()
init
protected void init()
- Specified by:
init
in class AbstractLifeCycle
merge
public boolean merge(Object pojo,
RequestContext rc)
throws IOException,
ValidationException
- Throws:
IOException
ValidationException
consume
public Object consume(RequestContext rc)
throws IOException,
ValidationException
- Throws:
IOException
ValidationException
Copyright © 2008-2013. All Rights Reserved.