Class SchemaMetadataInfoParser


  • public class SchemaMetadataInfoParser
    extends java.lang.Object
    This parser reads the so called Schema Metadata Information sent alongside each request.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.json.JsonReader createJsonReader​(java.lang.String rawRequest)
      Create a JSON reader for raw request data.
      SchemaMetadataInfo parse​(javax.json.JsonObject schemaMetadataInfoObject)
      Parse a JSON structure into SchemaMetadataInfo
      protected java.util.Map<java.lang.String,​java.lang.String> parseProperties​(javax.json.JsonObject jsonSchemaMedadataInfo)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SchemaMetadataInfoParser

        public SchemaMetadataInfoParser()
    • Method Detail

      • parse

        public SchemaMetadataInfo parse​(javax.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 javax.json.JsonReader createJsonReader​(java.lang.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 java.util.Map<java.lang.String,​java.lang.String> parseProperties​(javax.json.JsonObject jsonSchemaMedadataInfo)