Package com.wavemaker.runtime.converters
Class DateHttpMessageConverter
- All Implemented Interfaces:
com.wavemaker.runtime.commons.converters.WMCustomHttpMessageConverter<Date>,org.springframework.http.converter.HttpMessageConverter<Date>
public class DateHttpMessageConverter
extends com.wavemaker.runtime.commons.converters.WMCustomAbstractHttpMessageConverter<Date>
Created by srujant on 16/5/17.
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DatereadInternal(Class<? extends Date> clazz, org.springframework.http.HttpInputMessage inputMessage) protected booleanprotected voidwriteInternal(Date date, org.springframework.http.HttpOutputMessage outputMessage) Methods inherited from class com.wavemaker.runtime.commons.converters.WMCustomAbstractHttpMessageConverter
getDefaultContentType, supportsClazzMethods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, supportsRepeatableWrites, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.converter.HttpMessageConverter
canRead, canWrite, getSupportedMediaTypes, getSupportedMediaTypes, read, write
-
Constructor Details
-
DateHttpMessageConverter
public DateHttpMessageConverter()
-
-
Method Details
-
supports
- Specified by:
supportsin classorg.springframework.http.converter.AbstractHttpMessageConverter<Date>
-
readInternal
protected Date readInternal(Class<? extends Date> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException - Specified by:
readInternalin classorg.springframework.http.converter.AbstractHttpMessageConverter<Date>- Throws:
IOException
-
writeInternal
protected void writeInternal(Date date, org.springframework.http.HttpOutputMessage outputMessage) throws IOException - Specified by:
writeInternalin classorg.springframework.http.converter.AbstractHttpMessageConverter<Date>- Throws:
IOException
-