org.springframework.batch.admin.web
Class BindingHttpMessageConverter<T>

java.lang.Object
  extended by org.springframework.batch.admin.web.BindingHttpMessageConverter<T>
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware, org.springframework.http.converter.HttpMessageConverter<T>

public class BindingHttpMessageConverter<T>
extends java.lang.Object
implements org.springframework.http.converter.HttpMessageConverter<T>, org.springframework.beans.factory.BeanFactoryAware


Constructor Summary
BindingHttpMessageConverter()
           
 
Method Summary
 boolean canRead(java.lang.Class<?> clazz, org.springframework.http.MediaType mediaType)
           
 boolean canWrite(java.lang.Class<?> clazz, org.springframework.http.MediaType mediaType)
           
 java.util.List<org.springframework.http.MediaType> getSupportedMediaTypes()
           
 T read(java.lang.Class<? extends T> clazz, org.springframework.http.HttpInputMessage inputMessage)
           
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
           
 void setTargetType(java.lang.Class<T> targetType)
           
 void write(T input, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindingHttpMessageConverter

public BindingHttpMessageConverter()
Method Detail

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
                    throws org.springframework.beans.BeansException
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
Throws:
org.springframework.beans.BeansException

setTargetType

public void setTargetType(java.lang.Class<T> targetType)
Parameters:
targetType - the tergetType to set

getSupportedMediaTypes

public java.util.List<org.springframework.http.MediaType> getSupportedMediaTypes()
Specified by:
getSupportedMediaTypes in interface org.springframework.http.converter.HttpMessageConverter<T>

canRead

public boolean canRead(java.lang.Class<?> clazz,
                       org.springframework.http.MediaType mediaType)
Specified by:
canRead in interface org.springframework.http.converter.HttpMessageConverter<T>

canWrite

public boolean canWrite(java.lang.Class<?> clazz,
                        org.springframework.http.MediaType mediaType)
Specified by:
canWrite in interface org.springframework.http.converter.HttpMessageConverter<T>

read

public T read(java.lang.Class<? extends T> clazz,
              org.springframework.http.HttpInputMessage inputMessage)
       throws java.io.IOException,
              org.springframework.http.converter.HttpMessageNotReadableException
Specified by:
read in interface org.springframework.http.converter.HttpMessageConverter<T>
Throws:
java.io.IOException
org.springframework.http.converter.HttpMessageNotReadableException

write

public void write(T input,
                  org.springframework.http.MediaType contentType,
                  org.springframework.http.HttpOutputMessage outputMessage)
           throws java.io.IOException,
                  org.springframework.http.converter.HttpMessageNotWritableException
Specified by:
write in interface org.springframework.http.converter.HttpMessageConverter<T>
Throws:
java.io.IOException
org.springframework.http.converter.HttpMessageNotWritableException


Copyright © 2011. All Rights Reserved.