Package com.evolveum.midpoint.rest.impl
Class MidpointAbstractHttpMessageConverter<T>
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<T>
com.evolveum.midpoint.rest.impl.MidpointAbstractHttpMessageConverter<T>
- All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<T>
- Direct Known Subclasses:
MidpointJsonHttpMessageConverter,MidpointXmlHttpMessageConverter,MidpointYamlHttpMessageConverter
public abstract class MidpointAbstractHttpMessageConverter<T>
extends org.springframework.http.converter.AbstractHttpMessageConverter<T>
-
Field Summary
FieldsFields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMidpointAbstractHttpMessageConverter(PrismContext prismContext, LocalizationService localizationService, org.springframework.http.MediaType... supportedMediaTypes) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract PrismParsergetParser(InputStream entityStream) protected abstract PrismSerializer<String>protected TreadInternal(@NotNull Class<? extends T> clazz, @NotNull org.springframework.http.HttpInputMessage inputMessage) protected booleanprotected voidwriteInternal(T object, @NotNull org.springframework.http.HttpOutputMessage outputMessage) Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, supportsRepeatableWrites, 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
-
Field Details
-
prismContext
-
-
Constructor Details
-
MidpointAbstractHttpMessageConverter
protected MidpointAbstractHttpMessageConverter(PrismContext prismContext, LocalizationService localizationService, org.springframework.http.MediaType... supportedMediaTypes)
-
-
Method Details
-
getSerializer
-
getParser
-
supports
- Specified by:
supportsin classorg.springframework.http.converter.AbstractHttpMessageConverter<T>
-
readInternal
@NotNull protected T readInternal(@NotNull @NotNull Class<? extends T> clazz, @NotNull @NotNull org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException - Specified by:
readInternalin classorg.springframework.http.converter.AbstractHttpMessageConverter<T>- Throws:
IOExceptionorg.springframework.http.converter.HttpMessageNotReadableException
-
writeInternal
protected void writeInternal(@NotNull T object, @NotNull @NotNull org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException - Specified by:
writeInternalin classorg.springframework.http.converter.AbstractHttpMessageConverter<T>- Throws:
IOExceptionorg.springframework.http.converter.HttpMessageNotWritableException
-