public class BHiveTeeHttpMessageConverter<T> extends Object implements org.springframework.http.converter.HttpMessageConverter<T>
HttpMessageConverter를 래핑하여 입출력 내용을 Tee하여 로깅하는 클래스| Constructor and Description |
|---|
BHiveTeeHttpMessageConverter(org.springframework.http.converter.HttpMessageConverter<T> httpConverter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(Class<?> clazz,
org.springframework.http.MediaType mediaType) |
boolean |
canWrite(Class<?> clazz,
org.springframework.http.MediaType mediaType) |
List<org.springframework.http.MediaType> |
getSupportedMediaTypes() |
T |
read(Class<? extends T> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
void |
write(T t,
org.springframework.http.MediaType contentType,
org.springframework.http.HttpOutputMessage outputMessage) |
public BHiveTeeHttpMessageConverter(org.springframework.http.converter.HttpMessageConverter<T> httpConverter)
public boolean canRead(Class<?> clazz, org.springframework.http.MediaType mediaType)
canRead in interface org.springframework.http.converter.HttpMessageConverter<T>public boolean canWrite(Class<?> clazz, org.springframework.http.MediaType mediaType)
canWrite in interface org.springframework.http.converter.HttpMessageConverter<T>public List<org.springframework.http.MediaType> getSupportedMediaTypes()
getSupportedMediaTypes in interface org.springframework.http.converter.HttpMessageConverter<T>public T read(Class<? extends T> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException
read in interface org.springframework.http.converter.HttpMessageConverter<T>IOExceptionorg.springframework.http.converter.HttpMessageNotReadableExceptionpublic void write(T t, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
write in interface org.springframework.http.converter.HttpMessageConverter<T>IOExceptionorg.springframework.http.converter.HttpMessageNotWritableExceptionCopyright © 2018. All rights reserved.