Type - type to unmarshall.public class JacksonJsonUnmarshaller<Type> extends Object implements JsonUnmarshaller<Type>
JsonUnmarshaller.| Modifier | Constructor and Description |
|---|---|
protected |
JacksonJsonUnmarshaller(Class<? extends Type> outputType,
List<String> discriminatorPath,
Map<String,Class> validTypes)
Constructor for JacksonJsonUnmarshaller.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<UnmarshalledRequest<Type>> |
unmarshall(byte[] in)
Abstract method to unmarshall a given byte array.
|
static <Type> JacksonJsonUnmarshaller<Type> |
withTypeBinding(Class<? extends Type> outputType,
List<String> discriminatorPath,
Map<String,Class> validTypes)
Return an instance of JacksonJsonUnmarshaller.
|
static <Output> JacksonJsonUnmarshaller<Output> |
withTypeBinding(Class<Output> outputType)
Deprecated.
|
static <Output> JacksonJsonUnmarshaller<Output> |
withTypeBinding(Class<Output> outputType,
String requiredField)
Deprecated.
|
protected JacksonJsonUnmarshaller(Class<? extends Type> outputType, List<String> discriminatorPath, Map<String,Class> validTypes)
outputType - output type.discriminatorPath - discriminator path.validTypes - map of valid class types.@Deprecated public static <Output> JacksonJsonUnmarshaller<Output> withTypeBinding(Class<Output> outputType)
Output - Type of class to be unmarshalled to.outputType - class of type Output.JacksonJsonUnmarshaller.@Deprecated public static <Output> JacksonJsonUnmarshaller<Output> withTypeBinding(Class<Output> outputType, String requiredField)
Output - Type of class to be unmarshalled to.outputType - class of type Output.requiredField - required field.JacksonJsonUnmarshaller.public static <Type> JacksonJsonUnmarshaller<Type> withTypeBinding(Class<? extends Type> outputType, List<String> discriminatorPath, Map<String,Class> validTypes)
Type - unmarshaller of type.outputType - class of type Output.discriminatorPath - discriminator path.validTypes - valid class types.JacksonJsonUnmarshaller.public Optional<UnmarshalledRequest<Type>> unmarshall(byte[] in)
unmarshall in interface JsonUnmarshaller<Type>in - input byte array.Optional of UnmarshalledRequest.Copyright © 2023. All rights reserved.