Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Latest commit

 

History

History
59 lines (45 loc) · 2.88 KB

File metadata and controls

59 lines (45 loc) · 2.88 KB

RefContentSchemaHeader

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

Nested Class Summary

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

ApplicationjsonMediaType

public record ApplicationjsonMediaType
implements [MediaType<RefContentSchemaHeaderSchema.RefContentSchemaHeaderSchema1, Void>

class storing schema info for a specific contentType

Constructor Summary

Constructor and Description
ApplicationjsonMediaType()
Creates an instance

Method Summary

Modifier and Type Method and Description
RefContentSchemaHeaderSchema.RefContentSchemaHeaderSchema1 schema()
the schema for this MediaType
Void encoding()
the encoding info

RefContentSchemaHeader1

public static class RefContentSchemaHeader1 implements Header

a class that deserializes a header value

Constructor Summary

Constructor and Description
RefContentSchemaHeader1()
Creates an instance

Field Summary

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

Method Summary

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

[Back to top] [Back to Component Headers] [Back to README]