Package com.jumio.sdk.util
Class FileHttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<File>
com.jumio.sdk.util.FileHttpMessageConverter
- All Implemented Interfaces:
-
org.springframework.http.converter.HttpMessageConverter<File>
public class FileHttpMessageConverter
extends org.springframework.http.converter.AbstractHttpMessageConverter<File>
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.springframework.http.MediaType>protected FilereadInternal(Class<? extends File> clazz, org.springframework.http.HttpInputMessage inputMessage) protected booleanprotected voidwriteInternal(File file, org.springframework.http.HttpOutputMessage outputMessage) Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, read, setDefaultCharset, setSupportedMediaTypes, 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
getSupportedMediaTypes
-
Constructor Details
-
FileHttpMessageConverter
public FileHttpMessageConverter()
-
-
Method Details
-
supports
- Specified by:
-
supportsin classorg.springframework.http.converter.AbstractHttpMessageConverter<File>
-
getSupportedMediaTypes
-
readInternal
protected File readInternal(Class<? extends File> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException - Specified by:
-
readInternalin classorg.springframework.http.converter.AbstractHttpMessageConverter<File> - Throws:
-
IOException org.springframework.http.converter.HttpMessageNotReadableException
-
writeInternal
protected void writeInternal(File file, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException - Specified by:
-
writeInternalin classorg.springframework.http.converter.AbstractHttpMessageConverter<File> - Throws:
-
IOException org.springframework.http.converter.HttpMessageNotWritableException
-