Class SequenceFileMessageConverter
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.repositories.remote.resttemplate.SequenceFileMessageConverter
-
- All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<java.nio.file.Path>
public class SequenceFileMessageConverter extends java.lang.Object implements org.springframework.http.converter.HttpMessageConverter<java.nio.file.Path>
Message markdownConverter for converting application/fastq HTTP responses to a Java Path temporary file
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<org.springframework.http.MediaType>
SUPPORTED_TYPES
-
Constructor Summary
Constructors Constructor Description SequenceFileMessageConverter(java.lang.String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
java.nio.file.Path
read(java.lang.Class<? extends java.nio.file.Path> clazz, org.springframework.http.HttpInputMessage inputMessage)
void
write(java.nio.file.Path t, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage)
-
-
-
Method Detail
-
canRead
public boolean canRead(java.lang.Class<?> clazz, org.springframework.http.MediaType mediaType)
- Specified by:
canRead
in interfaceorg.springframework.http.converter.HttpMessageConverter<java.nio.file.Path>
-
canWrite
public boolean canWrite(java.lang.Class<?> clazz, org.springframework.http.MediaType mediaType)
- Specified by:
canWrite
in interfaceorg.springframework.http.converter.HttpMessageConverter<java.nio.file.Path>
-
getSupportedMediaTypes
public java.util.List<org.springframework.http.MediaType> getSupportedMediaTypes()
- Specified by:
getSupportedMediaTypes
in interfaceorg.springframework.http.converter.HttpMessageConverter<java.nio.file.Path>
-
read
public java.nio.file.Path read(java.lang.Class<? extends java.nio.file.Path> clazz, org.springframework.http.HttpInputMessage inputMessage) throws java.io.IOException, org.springframework.http.converter.HttpMessageNotReadableException
- Specified by:
read
in interfaceorg.springframework.http.converter.HttpMessageConverter<java.nio.file.Path>
- Throws:
java.io.IOException
org.springframework.http.converter.HttpMessageNotReadableException
-
write
public void write(java.nio.file.Path t, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage) throws java.io.IOException, org.springframework.http.converter.HttpMessageNotWritableException
- Specified by:
write
in interfaceorg.springframework.http.converter.HttpMessageConverter<java.nio.file.Path>
- Throws:
java.io.IOException
org.springframework.http.converter.HttpMessageNotWritableException
-
-