Class SimpleProfileSchema

    • Method Detail

      • getSchema

        public InputStream getSchema()
        Description copied from interface: ProfileSchema
        Retrieves the schema content as an input stream. The returned stream contains the actual schema definition (e.g., XSD, JSON Schema) that describes the structure of data for the associated connector profile. Callers of this method are responsible for properly closing the returned InputStream to prevent resource leaks. Use try-with-resources or ensure close() is called in a finally block.
        Specified by:
        getSchema in interface ProfileSchema
        Returns:
        an InputStream containing the schema content, or null if data associated with the schema could not be retrieved.
      • getType

        public ContentType getType()
        Description copied from interface: ProfileSchema
        Gets the content type of the schema profile associated with the operation. The content type indicates the format and structure of the schema, which helps the platform determine how to process and validate data according to this schema. Returns ContentType.NONE if the type is not xml or json
        Specified by:
        getType in interface ProfileSchema
        Returns:
        the ContentType of the profile associated with this schema