Class SchemaMetadataInfoParser


  • public class SchemaMetadataInfoParser
    extends Object
    This parser reads the so called Schema Metadata Information sent alongside each request.
    • Constructor Detail

      • SchemaMetadataInfoParser

        public SchemaMetadataInfoParser()
    • Method Detail

      • parse

        public SchemaMetadataInfo parse​(jakarta.json.JsonObject schemaMetadataInfoObject)
        Parse a JSON structure into SchemaMetadataInfo
        Parameters:
        schemaMetadataInfoObject - excerpt from the adapter request containing the schema metadata info as JSON object
        Returns:
        parsed SchemaMetadataInfo
      • createJsonReader

        protected jakarta.json.JsonReader createJsonReader​(String rawRequest)
        Create a JSON reader for raw request data.

        The data stream fed into this reader must be UTF-8 encoded.

        Parameters:
        rawRequest - raw JSON string representing an adapter request or part thereof
        Returns:
        JSON reader
      • parseProperties

        protected Map<String,​String> parseProperties​(jakarta.json.JsonObject jsonSchemaMetadataInfo)
        Read the properties from the schema metadata.
        Parameters:
        jsonSchemaMetadataInfo - json schema metadata info
        Returns:
        parsed Properties.