net.sf.sido.spring.mvc
Class AbstractDataObjectHttpMessageConverter<T,N>

java.lang.Object
  extended by org.springframework.http.converter.AbstractHttpMessageConverter<T>
      extended by net.sf.sido.spring.mvc.AbstractDataObjectHttpMessageConverter<T,N>
All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<T>
Direct Known Subclasses:
JSONDataObjectHttpMessageConverter, XMLDataObjectHttpMessageConverter

public class AbstractDataObjectHttpMessageConverter<T,N>
extends org.springframework.http.converter.AbstractHttpMessageConverter<T>


Field Summary
 
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger
 
Constructor Summary
AbstractDataObjectHttpMessageConverter(org.springframework.http.MediaType mediaType, DataFactory factory, DataObjectReader<?> doReader, DataObjectWriter<?,N> doWriter)
           
 
Method Summary
protected  T readInternal(Class<? extends T> clazz, org.springframework.http.HttpInputMessage inputMessage)
           
protected  boolean supports(Class<?> clazz)
           
protected  void writeInternal(T t, org.springframework.http.HttpOutputMessage outputMessage)
           
 
Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
canRead, canRead, canWrite, canWrite, getContentLength, getDefaultContentType, getSupportedMediaTypes, read, setSupportedMediaTypes, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDataObjectHttpMessageConverter

public AbstractDataObjectHttpMessageConverter(org.springframework.http.MediaType mediaType,
                                              DataFactory factory,
                                              DataObjectReader<?> doReader,
                                              DataObjectWriter<?,N> doWriter)
Method Detail

readInternal

protected T readInternal(Class<? extends T> clazz,
                         org.springframework.http.HttpInputMessage inputMessage)
                  throws IOException,
                         org.springframework.http.converter.HttpMessageNotReadableException
Specified by:
readInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<T>
Throws:
IOException
org.springframework.http.converter.HttpMessageNotReadableException

supports

protected boolean supports(Class<?> clazz)
Specified by:
supports in class org.springframework.http.converter.AbstractHttpMessageConverter<T>

writeInternal

protected void writeInternal(T t,
                             org.springframework.http.HttpOutputMessage outputMessage)
                      throws IOException,
                             org.springframework.http.converter.HttpMessageNotWritableException
Specified by:
writeInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<T>
Throws:
IOException
org.springframework.http.converter.HttpMessageNotWritableException


Copyright © 2011. All Rights Reserved.