Package com.envimate.httpmate.mapmate
Class MapMateSerializerAndDeserializer
- java.lang.Object
-
- com.envimate.httpmate.mapmate.MapMateSerializerAndDeserializer
-
- All Implemented Interfaces:
ChainModule,Configurator,SerializerAndDeserializer,com.envimate.messageMate.mapping.Demapifier<Object>,com.envimate.messageMate.mapping.Mapifier<Object>
public final class MapMateSerializerAndDeserializer extends Object implements SerializerAndDeserializer
-
-
Constructor Summary
Constructors Constructor Description MapMateSerializerAndDeserializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMarshallingTypeToResponseContentTypeMapping(ContentType contentType, com.envimate.mapmate.marshalling.MarshallingType marshallingType)voidaddRequestContentTypeToUnmarshallingTypeMapping(ContentType contentType, com.envimate.mapmate.marshalling.MarshallingType marshallingType)voidconfigure(DependencyRegistry dependencyRegistry)<T> Tdeserialize(Class<T> type, Map<String,Object> map)static MapMateIntegrationBuildermapMateIntegration(com.envimate.mapmate.builder.MapMate mapMate)Map<String,Object>serialize(Object event)voidsetDefaultContentType(ContentType defaultContentType)voidsetMapMate(com.envimate.mapmate.builder.MapMate mapMate)List<ChainModule>supplyModulesIfNotAlreadyPreset()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.envimate.httpmate.chains.ChainModule
identifier
-
Methods inherited from interface com.envimate.httpmate.usecases.usecase.SerializerAndDeserializer
map, map, register
-
-
-
-
Method Detail
-
mapMateIntegration
public static MapMateIntegrationBuilder mapMateIntegration(com.envimate.mapmate.builder.MapMate mapMate)
-
setMapMate
public void setMapMate(com.envimate.mapmate.builder.MapMate mapMate)
-
setDefaultContentType
public void setDefaultContentType(ContentType defaultContentType)
-
addRequestContentTypeToUnmarshallingTypeMapping
public void addRequestContentTypeToUnmarshallingTypeMapping(ContentType contentType, com.envimate.mapmate.marshalling.MarshallingType marshallingType)
-
addMarshallingTypeToResponseContentTypeMapping
public void addMarshallingTypeToResponseContentTypeMapping(ContentType contentType, com.envimate.mapmate.marshalling.MarshallingType marshallingType)
-
deserialize
public <T> T deserialize(Class<T> type, Map<String,Object> map)
- Specified by:
deserializein interfaceSerializerAndDeserializer
-
serialize
public Map<String,Object> serialize(Object event)
- Specified by:
serializein interfaceSerializerAndDeserializer
-
supplyModulesIfNotAlreadyPreset
public List<ChainModule> supplyModulesIfNotAlreadyPreset()
- Specified by:
supplyModulesIfNotAlreadyPresetin interfaceConfigurator
-
configure
public void configure(DependencyRegistry dependencyRegistry)
- Specified by:
configurein interfaceChainModule- Specified by:
configurein interfaceConfigurator- Specified by:
configurein interfaceSerializerAndDeserializer
-
-