Class FederationGatewayHttpMessageConverter
- java.lang.Object
-
- org.springframework.http.converter.AbstractHttpMessageConverter<DiagnosisKeyBatch>
-
- app.coronawarn.server.common.federation.client.download.FederationGatewayHttpMessageConverter
-
- All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<DiagnosisKeyBatch>
public class FederationGatewayHttpMessageConverter extends org.springframework.http.converter.AbstractHttpMessageConverter<DiagnosisKeyBatch>
Converter for converting federation gateway HTTP responses intoDiagnosisKeyBatch
objects.
-
-
Field Summary
Fields Modifier and Type Field Description static org.springframework.http.MediaType
PROTOBUF
The media-type for protobufapplication/protobuf
.
-
Constructor Summary
Constructors Constructor Description FederationGatewayHttpMessageConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DiagnosisKeyBatch
readInternal(Class<? extends DiagnosisKeyBatch> clazz, org.springframework.http.HttpInputMessage message)
protected boolean
supports(Class<?> clazz)
protected void
writeInternal(DiagnosisKeyBatch message, org.springframework.http.HttpOutputMessage outputMessage)
-
-
-
Method Detail
-
supports
protected boolean supports(Class<?> clazz)
- Specified by:
supports
in classorg.springframework.http.converter.AbstractHttpMessageConverter<DiagnosisKeyBatch>
-
readInternal
protected DiagnosisKeyBatch readInternal(Class<? extends DiagnosisKeyBatch> clazz, org.springframework.http.HttpInputMessage message) throws IOException
- Specified by:
readInternal
in classorg.springframework.http.converter.AbstractHttpMessageConverter<DiagnosisKeyBatch>
- Throws:
IOException
-
writeInternal
protected void writeInternal(DiagnosisKeyBatch message, org.springframework.http.HttpOutputMessage outputMessage)
- Specified by:
writeInternal
in classorg.springframework.http.converter.AbstractHttpMessageConverter<DiagnosisKeyBatch>
-
-