com.dyuproject.web.rest.consumer
Class AbstractConsumer
java.lang.Object
com.dyuproject.web.rest.AbstractLifeCycle
com.dyuproject.web.rest.consumer.AbstractConsumer
- All Implemented Interfaces:
- LifeCycle, ValidatingConsumer
- Direct Known Subclasses:
- SimpleJSONConsumer, SimpleParameterConsumer
public abstract class AbstractConsumer
- extends AbstractLifeCycle
- implements ValidatingConsumer
- 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 |
_httpMethod
protected String _httpMethod
_contentType
protected String _contentType
_pojoClass
protected Class<?> _pojoClass
_fieldParams
protected Map<?,?> _fieldParams
AbstractConsumer
public AbstractConsumer()
getPojoClass
public final Class<?> getPojoClass()
getFieldParams
public final Map<?,?> getFieldParams()
getHttpMethod
public final String getHttpMethod()
- Specified by:
getHttpMethod
in interface ValidatingConsumer
getContentType
public final String getContentType()
- Specified by:
getContentType
in interface ValidatingConsumer
preConfigure
public void preConfigure(String httpMethod,
String contentType,
Class<?> pojoClass,
Map<?,?> fieldParams)
- Specified by:
preConfigure
in interface ValidatingConsumer
getFieldParam
protected final String getFieldParam(String name)
getDefaultContentType
protected abstract String getDefaultContentType()
getDefaultErrorMsg
public static String getDefaultErrorMsg(String field)
getDisplayField
public static StringBuilder getDisplayField(String field)
Copyright © 2008-2013. All Rights Reserved.