RefContentSchemaHeader.java
public class RefContentSchemaHeader
A class that contains necessary nested header classes
- a class that implements MediaType to store content schema info
- a class that extends SchemaHeader/ContentHeader and is used to deserialize the header value
Modifier and Type | Class and Description |
---|---|
record | RefContentSchemaHeader.ApplicationjsonMediaType record storing schema + encoding for a specific contentType |
static class | RefContentSchemaHeader.RefContentSchemaHeader1 class that deserializes a header |
public record ApplicationjsonMediaType
implements [MediaType<RefContentSchemaHeaderSchema.RefContentSchemaHeaderSchema1, Void>
class storing schema info for a specific contentType
Constructor and Description |
---|
ApplicationjsonMediaType() Creates an instance |
Modifier and Type | Method and Description |
---|---|
RefContentSchemaHeaderSchema.RefContentSchemaHeaderSchema1 | schema() the schema for this MediaType |
Void | encoding() the encoding info |
public static class RefContentSchemaHeader1 implements Header
a class that deserializes a header value
Constructor and Description |
---|
RefContentSchemaHeader1() Creates an instance |
Modifier and Type | Field and Description |
---|---|
boolean | required = true whether the header is required |
@Nullable ParameterStyle | ParameterStyle.SIMPLE |
@Nullable Boolean explode | false |
@Nullable Boolean allowReserved | null |
AbstractMap.SimpleEntry<String, ApplicationjsonMediaType> | content = new AbstractMap.SimpleEntry<>("application/json", new ApplicationjsonMediaType()) the contentType to schema info |
Modifier and Type | Method and Description |
---|---|
HttpHeaders | serialize(@Nullable Object inData, String name, boolean validate, SchemaConfiguration configuration) |
@Nullable Object | deserialize(List<String> inData, boolean validate, SchemaConfiguration configuration) deserializes the header value |