com.dyuproject.web.rest
Interface ValidatingConsumer
- All Superinterfaces:
- LifeCycle
- All Known Implementing Classes:
- AbstractConsumer, SimpleJSONConsumer, SimpleParameterConsumer
public interface ValidatingConsumer
- extends LifeCycle
Consumes request content based on their Content-Type - and at the same time
validates the content.
- Author:
- David Yu
- Date created:
- Jan 14, 2009
REQUEST_CONTENT_TYPE
static final String REQUEST_CONTENT_TYPE
- See Also:
- Constant Field Values
preConfigure
void preConfigure(String httpMethod,
String contentType,
Class<?> pojoClass,
Map<?,?> fieldParams)
getContentType
String getContentType()
getHttpMethod
String getHttpMethod()
consume
Object consume(RequestContext requestContext)
throws IOException,
ValidationException
- Throws:
IOException
ValidationException
merge
boolean merge(Object pojo,
RequestContext rc)
throws IOException,
ValidationException
- Throws:
IOException
ValidationException
Copyright © 2008-2013. All Rights Reserved.